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!

NOTAUTH error for nsupdates

Discussion in 'Bind/DNS/Nameserver' started by chamelion, Jan 18, 2017.

Tags:
  1. chamelion

    chamelion Member

    Joined:
    Aug 28, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    Hi all,

    I'm having a pretty frustrating time trying to update a zone file through nsupdate. I'm using centos with the latest WHM. I realise I can update through WHM but the script is doing something a bit more sophisticated based on some rules.

    My named.conf has a key defined:

    key "rndc-key" {
    algorithm hmac-md5;
    secret "THISISMYSECRET==";
    };

    I have a domain mydomain.com which is referenced twice in named.conf, once in the view "internal" and once in view "external." Both the zone entries are identical:

    zone "mydomain.com" {
    type master;
    file "/var/named/example.com.db";
    allow-update { key rndc-key; };
    };



    Then, a simple nsupdate:

    #nsupdate
    >server localhost
    >key rndc-key THISISMYSECRET==
    >zone mydomain.com
    >update add test 86400 A 1.1.1.1
    >send

    Output is:
    update failed: NOTAUTH


    I've tried changing the update add command, playing with:
    test (as above)
    test.
    test.mydomain.com
    test.mydomain.com.

    All of them yield the same NOTAUTH failure.

    Any tips?
     
    #1 chamelion, Jan 18, 2017
    Last edited by a moderator: Jan 18, 2017
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. chamelion

    chamelion Member

    Joined:
    Aug 28, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    Hi Michael,

    I already have an allow update entry which specifies the key required to update the zone file - see my original post?

    Thanks!
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Would you mind opening a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. chamelion

    chamelion Member

    Joined:
    Aug 28, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    151
    request ID 8160525

    thanks!
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, it looks like the issue was addressed with the help of our Technical Support team after some suggestions regarding the use of a fully qualified domain name after the "update add" command, and the addition of write permissions for the named group on the /var/named directory.

    Thank you.
     
    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