Dynamic DNS on vps

Hello people. This is somehow off topic but if anyone can answer this I would appreciate it.

Ok, I was thinking to use my vps for something else except hosting. DNS (Bind 9.2.x) is

running so I thought to use it for Dynamic DNS because I have lots of workstation everywhere

with dynamic ips and I dont want to use dyndns.org because a) I want mine & b) I want to learn this sh*t.

Ok lets roll. After enough (I believe) readind I found a howto at http://ops.ietf.org/dns/dynupd/secure-ddns-howto.html

and follow it

I’ve made a key file first of all like this:

dnssec-keygen -a HMAC-MD5 -b 128 -n domain.com key-test

where domain.com my domain I want to use for dynamic dns.

I get the key. Ok Next,

I follow the http://ops.ietf.org/dns/dynupd/secure-ddns-howto.html howto

and add these lines in my named.conf

key key-test {
        algorithm hmac-md5;
        secret "WXrQNiJTGpbYigrv1q7Z2Q==";

and of course in the zones:

zone "domain.com" {
        type master;
        file "/var/named/domain.com.db";
        allow-update { key key-test; };

update-policy {
    grant * self * A TXT;


and I added a domain.com.db like thar

$TTL 86400 ; 1 minute
      @         IN      SOA     domain.com. ns1.domain.com. (
                                        2007052010 ; serial
                                        10800      ; refresh (3 hours)
                                        3600       ; retry (1 hour)
                                        1814400    ; expire (3 weeks)
                                        86400      ; minimum (1 day)
      @                 NS      ns1.domain.com.
      @                 NS      ns2.domain.com.

      hostname  60      IN      A

I believe in the server-side I am ok. Now the client side.

I didn’t want to write a program from scratch to do the update so I searched

the sf.net and found a perfect one, ipupdate

ipupdate comes with an executable, and a conf file. Conf file looks like this:

server "ns1.domain.com"
	zone "domain.com"
		hosts "@,www,*"
		keyname "key-test"

		keydata "WXrQNiJTGpbYigrv1q7Z2Q=="   <<-- the key from the first action

Now, restarting the bind with the new settings and enough expirements

When trying to update the zone I get from the server side: (in /var/log/messages)

May 13 09:21:41 sky named[25688]:

client my.client.ip.here#4460: updating zone ‘domain.com/IN’: update failed: not authoritative for update zone (NOTAUTH)

and from the client side I get:

C:\Documents and Settings\User\Desktop\ip>ipupdate

getconfig: loading ‘C:\Documents and Settings\User\Desktop\ip\ipupdate.conf’

Detected IP: xxx.xxx.xxx.xxx <<–(my ip)

checkip: server ns1.domain.com: dns error: Not Authenticated (BADKEY)

checkip: zone domain.com: keyname is rejected by server

Is anyone tried something like this before? (dynamic dns, either with this way or not)

Any feedback should be appreciated because I am stuck with this…

Explore posts in the same categories: info

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: