Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Moving to a distributed DNS environment

Discussion in 'Bind/DNS/Nameserver' started by fcastro86, Feb 5, 2013.

  1. fcastro86

    fcastro86 Member

    Joined:
    Mar 20, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    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:


    root@venus [~]# 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:

    root@venus [~]# 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"

    root@venus [~]# 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.
     
  2. fcastro86

    fcastro86 Member

    Joined:
    Mar 20, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    It is getting weirder,

    root@venus [~]# nslookup ns2.genohost.com venus
    Server: venus
    Address: 207.210.106.40#53

    Name: ns2.genohost.com
    Address: 207.210.78.226

    root@venus [~]# 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...
     
  3. fcastro86

    fcastro86 Member

    Joined:
    Mar 20, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    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.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice