Centos – Failed to add custom DNS Server

bindcentosdomain-name-system

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

Best Answer

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.

Related Topic