Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

When I setup my server, the guide said to use, (both my nameservers are and However, recently, I changed it to, and everything works.. However, should it be instead? Or does it not matter a whole lot?

From what I gather, I should use, not because works, but because references to server one, where if I had a second server, it'd be (although at the moment, both ns1 and ns2 point to one server)

share|improve this question

1 Answer 1

Chances are that ns1 and www point to the same IP address, which is why it works. In this case, either will work for you. They don't have to point to the same IP though. In a single server environment like yours everything points to the same spot. Once you get two, then it'll start to matter.

share|improve this answer
That's what I figured. Thanks. :) One more question though. What's your opinion on how to do a multi-server setup (relating to hostnames and DNS setup)? Just so I know it in the future, just in case. :) – user56511 Oct 8 '10 at 5:40
I usually name the servers whatever I want and then add CNAME s to set which services they run. So then I can have with as a CNAME pointing to it. This way if the function changes (or one of the functions is removed) I just need to delete CNAME (or add a new one). That's not so important if you have fully virtualised environment and have single-purpose VMs... – Hubert Kario Oct 8 '10 at 10:22

Your Answer


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