Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

I have also registered a domain name e.g.

I have installed Glassfish 3.1 open source edition on my machine. Now the application is accessable on 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 and 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?

share|improve this question
As a software developer, you're in the right place. However, as a sysadmin, this question is off topic. I suggest asking on serverfault. – Flimzy Jul 9 '11 at 11:36
If you create a new one, yes, you should probably delete this one. If you wait a while, a moderator will probably migrate this one for you. – Flimzy Jul 9 '11 at 11:42
So I prefer the second way, at least by that time some developers can review my question, and I can understand their language better than server admins. :) – ehsun7b Jul 9 '11 at 11:45
Is your actual IP or are you just using the 10-net as an example for this question? The 10-net is a private IP network configuration and not routable across the Internet, if that is the actual IP you are working with. – user48838 Jul 9 '11 at 12:30
it is my static (real) IP. – ehsun7b Jul 9 '11 at 13:01
up vote 0 down vote accepted

Assuming the actual IP is not a 10-net based one...

Normally one would only need to configure the DNS server managing your actual domain - typically at the "registrar" for a lot of folks these days. This would be accomplished with an "A Record" that would associate the desired DNS name with the Internet IP.

No need to setup additional DNS servers in most cases.

share|improve this answer
I need to install my own DNS server on my VPS. – ehsun7b Jul 9 '11 at 13:00
With the 10-net configuration, you may be able to get by with host files versus having a DNS server setup. – user48838 Jul 9 '11 at 17:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.