The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changes to DNS zone files under /var/named do not show up under whm zone editor

Discussion in 'Bind / DNS / Nameserver Issues' started by shazde, Jun 5, 2016.

  1. shazde

    shazde Registered

    Joined:
    May 19, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    This is extremely strange and I hope some one can direct us to the right answer:

    Here is a little bit of history.
    While transferring domains from 1 server to another (we have around 20 whm servers) the DNS zone data for the domains change (I understand this is a part of 11.50 change)/

    The problem here is most our clients have their own customization when it comes to their DNS settings (including using ns1.yourdomain.com and so far)

    To solve this problem we take a backup of the dns zone file before transfer and after transfer we copy the old dns zone file over the newly generated file on the new server and restart named.

    So far everything good as named read from the zone file which has the old value but when we go to the "Edit DNS Zone" under whm what we see is not the content of the file but the content of the auto-generated value! Which is simply wrong.

    I have done a whole system grep to see where these data is coming from but no luck!

    This is extremely devastating! We can't move accounts between servers anymore as the content of DNS zone changes and when we revert it back to the old data it still shows the wrong data to end user.

    What we need to know is where whm gets its zone data info to show under "Edit DNS Zone" as its obviously no more from the files under /var/named directory
     
  2. 24x7serversecurity

    Joined:
    Aug 31, 2015
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi :),

    First of all, if you are migrating accounts from one cPanel server to another cPanel server, then simply take full backup which will get the DNS file/configuration of that domain. So that when you restore it to the new server, the DNS zone will get restored as well. No need to do it manually.

    As you are facing problems while manually updating the zone file, try reloading the named service. Also get the cPanel updated using /scripts/upcp --force, and see if that can help.
     
  3. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you have 20 WHM servers, It's pretty much a necessity to setup DNS clustering.
    What I would do in this case is to setup 4 VPS'. They can be small, DNSonly doesn't need much, probably 2 gig ram tops
    When you get all of these setup (with DNSonly), then tie your servers into them, then set everything to ns1-4.mydomain.com

    Once you get all that done, you can move accounts from server to server to server without customers even noticing, or having to change a thing, as long as you handle their DNS

    As far as the current issue, what DNS server are you running? In some cases, you actually cannot edit those files like that.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the specific steps you took to manually copy over the zone files? Include the full path to the directories you copied over.

    Thank you.
     
Loading...

Share This Page