Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default /var/named/db_zone_file not syncing with WHM-managed zones

    The only topics I could find that were similar to this issue didn't quite match what I'm experiencing, so I have opened this new thread.

    I have had a large number of entries to make to a particular zone file, so the 5-lines offered to make additions through the EDIT DNS ZONE tool in WHM would take far too long. In theory I should be able to edit the db_zone_file at /var/named/ location and it would then reflect when I use the WHM tool again. This is not the case though. At this point, the zone file as accessed through command line SSH is different than the same zone file as accessed through WHM.

    Any thoughts?

    Server info (if needed)
    WHM 11.30.4 (build 6)
    CENTOS 5.7 i686

  2. #2
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    1,346
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: /var/named/db_zone_file not syncing with WHM-managed zones

    Hello

    You will also need to increment the serial within the DNS Zone when editing it manually. Please do that, and then restart the Named service.

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  3. #3
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: /var/named/db_zone_file not syncing with WHM-managed zones

    Thanks. Forgot about that. Works good.

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: /var/named/db_zone_file not syncing with WHM-managed zones

    Named shouldn't need restarted, since you could simply perform "rndc reload" in command line to get the updated entries after updating the zone along with the serial number in the zone.

    Please note that restarting named if you have a lot of zones could take far longer than performing an rndc reload would. It could also result in any domains possibly being down if the named service didn't start back up for any reason whatsoever or took a very long time to start after the stop.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: /var/named/db_zone_file not syncing with WHM-managed zones

    Well... I've gotten the increment the serial and restart named service method to work, but then on the next zone, it is still not reflecting the change. So I've come back to see the rndc reload method, tried that too, but it is still not updating this time around. Is there something else I'm missing?

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: /var/named/db_zone_file not syncing with WHM-managed zones

    Could you be cached at this point? Any way you can try checking the change in a proxy or on another system?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Member
    Join Date
    Jul 2010
    Posts
    16

    Default Re: /var/named/db_zone_file not syncing with WHM-managed zones

    Doesn't appear to be a cache issue. I can manually update the serial in the WHM tool and it resets the file I can access via SSH. But the opposite still isn't working (edit SSH to view correctly in WHM).

  8. #8
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: /var/named/db_zone_file not syncing with WHM-managed zones

    You aren't running named in a chroot environment, are you?

    Code:
    ps aux | grep named
    If it is running under a chroot environment, it should show on the process return.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. I Accidently Deleted a lot of DNS Zones from /var/named
    By Dr. Bogger in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-30-2008, 06:40 AM
  2. what is the point of /var/named/chroot/var/named
    By clbrack1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-22-2007, 03:25 PM
  3. Syncing zones?
    By Jasonbd in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-15-2004, 10:45 PM
  4. WHM not updating DNS zones in /etc/named.conf
    By skymedia in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-16-2004, 06:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube