<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: nsupdate error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730601#M43167</link>
    <description>The /etc/rndc.key file is not in the correct format for nsupdate. That format is suitable for BIND itself, the rndc tool and the ISC dhcpd only. These will use ISC's proprietary protocol for controlling BIND, typically using port TCP/953 for that.&lt;BR /&gt;&lt;BR /&gt;On the other hand, nsupdate uses standardized TSIG which is somewhat different and uses the standard DNS port 53 for communication. It is supposed to work with all DNS servers that support TSIG-protected dynamic updates.&lt;BR /&gt;&lt;BR /&gt;The man page for nsupdate tells this about the name of the key file:&lt;BR /&gt;----quote----&lt;BR /&gt;nsupdate uses the -y or -k option to provide the shared secret needed to generate a TSIG record for authenticating Dynamic DNS update requests, default type HMAC-MD5. These options are mutually exclusive.&lt;BR /&gt;&lt;BR /&gt;With the -k option, nsupdate reads the shared secret from the file keyfile, whose name is of the form K{name}.+157.+{random}.private. For historical reasons, the file K{name}.+157.+{random}.key must also be present.&lt;BR /&gt;----end quote----&lt;BR /&gt;&lt;BR /&gt;The expected format of the .private file looks like this:&lt;BR /&gt;----example----&lt;BR /&gt;Private-key-format: v1.2&lt;BR /&gt;Algorithm: 157 (HMAC_MD5)&lt;BR /&gt;Key: 6aTlgWGyZe83DXZbdRzwbu2j87RPOxWOq9FJml6ik0Dl50V6w2xlroXSchgK&lt;BR /&gt;----end example----&lt;BR /&gt;&lt;BR /&gt;This command will create a key in the correct format:&lt;BR /&gt;&lt;BR /&gt;dnssec-keygen -a HMAC-MD5 -b 512 -n HOST -k -r /dev/urandom -v 5 &lt;CLIENT_HOSTNAME_HERE&gt;&lt;BR /&gt;&lt;BR /&gt;It will create two files: a .key file that contains a DNS record of type "IN KEY", which you should add to the appropriate zone file (either by copy-pasting or by adding a $INCLUDE statement), and a .private file to be used with nsupdate.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/CLIENT_HOSTNAME_HERE&gt;</description>
    <pubDate>Sun, 26 Dec 2010 11:15:29 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2010-12-26T11:15:29Z</dc:date>
    <item>
      <title>nsupdate error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730598#M43164</link>
      <description>Hi there&lt;BR /&gt;My zone file gets updated by the dhcpd fine except for one host. I know I can update the zone manually using nasupdate but every time i try I get the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@ddns named]# nsupdate -k /etc/rndc.key&lt;BR /&gt;could not read key from /etc/rndc.key: unexpected token&lt;BR /&gt;&lt;BR /&gt;Any idea why would that be ?&lt;BR /&gt;&lt;BR /&gt;Reagrds&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Dec 2010 00:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730598#M43164</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2010-12-26T00:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: nsupdate error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730599#M43165</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Any idea why would that be ?&lt;BR /&gt;&lt;BR /&gt;Between the two of us, which, do you think,&lt;BR /&gt;can see what's in your "/etc/rndc.key" file?&lt;BR /&gt;(Hint:  It's not I.)</description>
      <pubDate>Sun, 26 Dec 2010 04:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730599#M43165</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-12-26T04:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: nsupdate error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730600#M43166</link>
      <description>key "rndckey" {&lt;BR /&gt; algorithm hmac-md5;&lt;BR /&gt; secret  "6aTlgWGyZe83DXZbdRzwbu2j87RPOxWOq9FJml6ik0Dl50V6w2xlroXSchgK";&lt;BR /&gt;};&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Dec 2010 06:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730600#M43166</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2010-12-26T06:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: nsupdate error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730601#M43167</link>
      <description>The /etc/rndc.key file is not in the correct format for nsupdate. That format is suitable for BIND itself, the rndc tool and the ISC dhcpd only. These will use ISC's proprietary protocol for controlling BIND, typically using port TCP/953 for that.&lt;BR /&gt;&lt;BR /&gt;On the other hand, nsupdate uses standardized TSIG which is somewhat different and uses the standard DNS port 53 for communication. It is supposed to work with all DNS servers that support TSIG-protected dynamic updates.&lt;BR /&gt;&lt;BR /&gt;The man page for nsupdate tells this about the name of the key file:&lt;BR /&gt;----quote----&lt;BR /&gt;nsupdate uses the -y or -k option to provide the shared secret needed to generate a TSIG record for authenticating Dynamic DNS update requests, default type HMAC-MD5. These options are mutually exclusive.&lt;BR /&gt;&lt;BR /&gt;With the -k option, nsupdate reads the shared secret from the file keyfile, whose name is of the form K{name}.+157.+{random}.private. For historical reasons, the file K{name}.+157.+{random}.key must also be present.&lt;BR /&gt;----end quote----&lt;BR /&gt;&lt;BR /&gt;The expected format of the .private file looks like this:&lt;BR /&gt;----example----&lt;BR /&gt;Private-key-format: v1.2&lt;BR /&gt;Algorithm: 157 (HMAC_MD5)&lt;BR /&gt;Key: 6aTlgWGyZe83DXZbdRzwbu2j87RPOxWOq9FJml6ik0Dl50V6w2xlroXSchgK&lt;BR /&gt;----end example----&lt;BR /&gt;&lt;BR /&gt;This command will create a key in the correct format:&lt;BR /&gt;&lt;BR /&gt;dnssec-keygen -a HMAC-MD5 -b 512 -n HOST -k -r /dev/urandom -v 5 &lt;CLIENT_HOSTNAME_HERE&gt;&lt;BR /&gt;&lt;BR /&gt;It will create two files: a .key file that contains a DNS record of type "IN KEY", which you should add to the appropriate zone file (either by copy-pasting or by adding a $INCLUDE statement), and a .private file to be used with nsupdate.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/CLIENT_HOSTNAME_HERE&gt;</description>
      <pubDate>Sun, 26 Dec 2010 11:15:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nsupdate-error/m-p/4730601#M43167</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-12-26T11:15:29Z</dc:date>
    </item>
  </channel>
</rss>

