Dynamically updating DNS records with NSUPDATE fails
Posted
by
Thuy
on Server Fault
See other posts from Server Fault
or by Thuy
Published on 2012-11-12T02:18:09Z
Indexed on
2012/11/12
5:02 UTC
Read the original article
Hit count: 496
I've got my own nameserver ns3.epnddns.com and domain epnddns.com
I wanted to try and update the records dynamiclly from home using nsupdate
but when I run nsupdate -k Kwww.epnddns.com.+157+17183.key
i get the following errors
Kwww.epnddns.com.+157+17183.key:1: unknown option 'www.epnddns.com.'
Kwww.epnddns.com.+157+17183.key:2: unexpected token near end of the file
Kwww.epnddns.com.+157+17183.{private,key}: unexpected token
Not sure why I get these errors, I'll post my complete setup.
Generated keys on my home pc, using dnssec-keygen -a HMAC-MD5 -b 128 -n HOST www.epnddns.com.
created /var/named/
and put the keys there and chmod them to 600.
transfered the keys to my nameserver ns3.epnddns.com, created /var/named/
,put the keys there and chmod them to 600
made dnskey.conf
in /var/named
and added
key www.epnddns.com. {
algorithm hmac-md5;
secret "my secret from they keys==";
};
chmod to 600
then in /etc/bind/named.conf.local
include "/var/named/dnskeys.conf";
zone "epnddns.com" {
type master;
file "/etc/bind/zones/epnddns.com.zone";
allow-transfer { myhomeip; }; //its my home ip so not in the same network
allow-update { key www.epnddns.com.; };
};
I restarted bind without any error messages so it seems to be working on the nameserver at least. But on my homepc when i try and run the nsupdate i get those error messages.
Thanks in advance for any help or insightful advice.
© Server Fault or respective owner