Moving to a distributed DNS environment

fcastro86

Member
Mar 20, 2012
20
0
51
cPanel Access Level
Root Administrator
Hello, I currently have all-in-one server (venus) as pretty much everybody. In the same box I have 3 ips with 2 name servers (ns1 and ns2) However I want to move to a distributed DNS environment. My idea is to have two small VPS in different locations. I'm currently testing with one of them, I changed my child name server NS2 from venus-ip to ceres-ip (my new vps running DNS ONLY) then I edited my DNS Record of "venus" changing the ip of ns2.

The problem? is that when I try to do a nslookup I get this:


[email protected] [~]# nslookup ns2.genohost.com genohost.com
Server: genohost.com
Address: 207.210.106.40#53

Name: ns2.genohost.com
Address: 207.210.78.226



But if I query my secondary server it just works fine:

[email protected] [~]# nslookup ns2.genohost.com ceres.genohost.com
Server: ceres.genohost.com
Address: 199.195.248.235#53

Name: ns2.genohost.com
Address: 199.195.248.235

The zone of "genohost.com"

[email protected] [~]# cat /var/named/genohost.com.db | grep "ns[1,2]"
..
...
....

ns2 14400 IN A 199.195.248.235
ns1 14400 IN A 207.210.78.91

Not sure what is wrong :S I've never done this, but surely somebody will have an idea of how to, thanks in advance.
 

fcastro86

Member
Mar 20, 2012
20
0
51
cPanel Access Level
Root Administrator
It is getting weirder,

[email protected] [~]# nslookup ns2.genohost.com venus
Server: venus
Address: 207.210.106.40#53

Name: ns2.genohost.com
Address: 207.210.78.226

[email protected] [~]# nslookup ns2.genohost.com localhost
Server: localhost
Address: 127.0.0.1#53

Non-authoritative answer:
Name: ns2.genohost.com
Address: 199.195.248.235

I get two different responses depending if I lookup for localhost or the server itself...
 

fcastro86

Member
Mar 20, 2012
20
0
51
cPanel Access Level
Root Administrator
I think I found the problem!

I was modifying the zone "genohost.com" however there are another one named "ns2.genohost.com" and "ns1.genohost.com" I modified them and everything seems to be working fine now.