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!

Dynamic DNS /var/named permissions issue

Discussion in 'Bind/DNS/Nameserver' started by hilario, Jan 14, 2013.

  1. hilario

    hilario Well-Known Member

    Joined:
    Jan 5, 2008
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Sao Paulo, Brazil
    I need to set a Dynamic DNS in a WHM/cPanel server.
    I am currently using nsupdate on client desktops.

    /var/named owner is root and its group is named.
    Permissions are 755

    When I run the nsupdate script I got the "update failed: SERVFAIL" error message.
    I than changed /var/named permissions to 775 and the script worked ok with no errors and the dynamic zone was correctly updated.

    However, a few hours later I notice that /var/named permissions are back to 755 and named can not update the dynamic zones anymore.

    I suppose that somehow, WHM has changed its permission back to its default.

    Is there a way to configure named so it can write to this particular zone and without breaking its security?
    Is there a way to move this particular zone file to a new directory where named could have write access?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. hilario

    hilario Well-Known Member

    Joined:
    Jan 5, 2008
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Sao Paulo, Brazil
    I am still unable to set the Dynamic DNS to work.

    I would appreciate if anyone could point me where to search for answers to this issue.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hilario

    hilario Well-Known Member

    Joined:
    Jan 5, 2008
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Sao Paulo, Brazil
    Solution:

    Create a new directory
    mkdir /var/named/dynamic
    chown named:named /var/named/dynamic
    chmod 640 /var/named/dynamic

    and move your dynamic zone from /var/named to /var/named/dynamic and do not forget to edit named.conf to point this zone to its newer location.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. hilario

    hilario Well-Known Member

    Joined:
    Jan 5, 2008
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Sao Paulo, Brazil
    If anyone is wondering about the possibility of transforming any server into a Dynamic DNS server, read this:

    Yes, BIND (named) is already a dynamic DNS server.
    You do not need to install anything in your cPanel server. So, no risk of breaking cPanel
    All you have to do is insert half a dozen lines in named.conf

    Works like a charm

    Say good buy to commercial Dynamic DNS servers like no-ip or dyndns.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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