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.

DNS zones not appearing in Edit DNS Zone list

Discussion in 'Bind / DNS / Nameserver Issues' started by jlopez, Jan 23, 2013.

  1. jlopez

    jlopez Registered

    Joined:
    Jan 11, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I work at a hosting company and we're having a little issue.
    When I click on "Edit DNS Zone" there are a lot of DNS zones that are missing from the listbox.
    The websites (and all the stuff such as email, databases, etc.) for these domains work perfectly, though.
    The DNS zone files for the missing domains are located at /var/named/dynamic, while newly added domains
    go directly into /var/named.
    The result is that only domains that are stored in /var/named appear in the zones listbox.

    I'm somewhat confused, what can I do to make those missing domains appear in the listbox?

    For more info the OS is CloudLinux 6.3 and cPanel version is WHM 11.34.1 (build 7).
     
    #1 jlopez, Jan 23, 2013
    Last edited: Jan 23, 2013
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    cPanel does not store zone files in /var/named/dynamic. That directory actually does not even exist on my test server.

    Before you do anything, back up your /etc/named.conf file and entire /var/named directory. Then, copy the zone files from /var/named/dynamic to /var/named. Finally, rebuild the DNS configuration and restart named:

    Code:
    # /scripts/rebuilddnsconfig
    # /scripts/restartsrv_named
    The /etc/named.conf will be rebuilt by /scripts/rebuilddnsconfig with the zones present in /var/named.

    All of the zones should now be listed in the WHM tools. Out of curiosity, were the zones in /var/named/dynamic somehow copied or migrated from another server?
     
  3. linuxchef

    linuxchef Member

    Joined:
    Jan 23, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, "/var/named/dynamic" does not content any .db or zone files. If you have it must be either a custom setup or wrong directory you looking at. In both case you need to check your named.conf and make sure what zone file path you have on your old server.

    Regards,
    LinuxChef
     
Loading...

Share This Page