First of all, I know that I'm asking a basic question.
I'm a software developer and I'm not an expert in server administration and network stuff.
I have a VPS (Win 2008) with one static IP e.g. 10.20.30.40
.
I have also registered a domain name e.g. mydomain.com
I have installed Glassfish 3.1 open source edition on my machine. Now the application is accessable on http://10.20.30.40
from outside and inside the server.
My first question: In order to set the domain name for my application can I config the Glassfish without any DNS server or I need to add DNS Role on my Windows 2008?
Explanation of second question:
Since I didn;t know the answer of my first question I installed DNS on my Windows 2008 and defined n1.mydomain.com
and ns2.mydomain.com
and in my domain control panel I added these 2 addresses with IP10.20.30.40
.
Now the application is accessible by IP and Domain inside the server but only by IP from outside.
How can I config my whole server in a correct way?