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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NOTAUTH error for nsupdates

Discussion in 'Bind / DNS / Nameserver Issues' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  5. chamelion

    chamelion Member

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

    thanks!
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page