Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My company wants me to setup our own DNS Servers, but i'm running into problem with it. So here's the story:

We bought a domain example.com from marcaria and bought a new VPS located in Russia. Our goal is to setup example.com to use ns1.example.com and ns2.example.com. But we cant do that because our domain still pointing to marcaria NS.

So first i create DNS Server using BIND within our VPS with this tutorial http://linuxgravity.com/configuring-bind9-domain-name-server-on-centos-or-red-hat , and when i try to change my domain DNS server to point ns1.example.com, it says

Address lookup for ns1.example.com failed: Host not found

I know its like chicken and egg problem, but i have no clue for the solution. I saw another thread solution but its godaddy as the domain registrar, it doesnt work for me.

Thanks

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Delegating name service

You must ask your domain registrar, Marcaria, to arrange that the nameservice for example.com be delegated to your nameservers. You'll have to give them the Internet-facing publicly-accessible IP-addresses of those nameservers.

In the case of example.com the delegation is carried out by configuring the nameservers for the .com domain. In your case it may be different but your domain registrar should arrange this for you.

Configuring other computers

Most businesses operate split-DNS where the DNS namespace visible to internal users is separate from that available to outside users. This often means that internally you use a separate nameserver for the example.com domain. Either way, for obvious reasons, you specify the nameserver the computer is to use by the nameserver's IP-address, not it's name.

share|improve this answer
    
I give the ns1.example.com accessible IP address, its just they lookup for the hostname. I guess i have to contact their support. –  mrfhm Nov 12 '10 at 21:14
    
I dont really understand your last paragraph, does it mean i used one IP address as a web server and dns server? –  mrfhm Nov 12 '10 at 21:14
    
If you configured BIND on the same VPS you are using for Apache httpd server then yes. –  RedGrittyBrick Nov 12 '10 at 21:57
add comment

I think that on the current nameservers handling example.com, you must first set up A records ns1.example.com and ns2.example.com in order to delegate NS control of example.com to them. Don't forget to add the same A records to your own bind so that when the change take place, the records still exist.
note: I might be wrong here, I'm not very good with DNS :-)

share|improve this answer
    
So, what your saying is i need to add A record in marcaria NS and in my bind? hmm..worth to try –  mrfhm Nov 12 '10 at 21:15
    
If you intend to run your own nameservers for example.com then Marcaria's nameservers are not involved. How familiar are you with DNS? Is the Wikipedia article of any interest? en.wikipedia.org/wiki/Domain_Name_System –  RedGrittyBrick Nov 12 '10 at 22:00
    
"change my domain DNS server to point ns1.example.com, it says Address lookup for ns1.example.com failed: Host not found". <br>Before you can delegate control of example.com to ns1.example.com, ns1.example.com record must exist, therefor start with creating it in the nameservers that are currently controlling example.com (I suppose Marcaria's). –  3molo Nov 13 '10 at 7:28
add comment

Your Answer

 
discard

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.