Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2004 14:30:01 -0800
From:      "Noah" <admin2@enabled.com>
To:        freebsd-questions@freebsd.org
Subject:   dynamic DNS issues - invalid TSIG key
Message-ID:  <20040612221029.M93390@enabled.com>

next in thread | raw e-mail | index | archive | help
FreeBSD-4.9-STABLE
bind-9.2.3

okay I am trying to set up dynamic DNS to bind on a FreeBSD box.  I have admin
on both client and server side.  the client is a redhat-8.0 machine with ISC
DHCP installed.

right now the client side is complaining of an invalid TSIG key.  The keys are
cut and Pasted and fomatted properly in each configuration file.  so I am at a
loss as to what to check next.

I have attached the error message.  I changed the hostnames and IP addresses
to protect the inocent - <> are added to clarify what I did.

--- snip ---

Jun 12 14:45:44 <hostname> dhclient: if IN A <hostname.domain.com>. rrset
doesn't exist add 3600 IN A <hostname.domain.com>. <10.2.1.1> add 3600 IN TXT
<hostname.domain.com>. "<key_stuff>": invalid TSIG key.

--- snip --- 

I am following the forwarding tutorial at:
http://ops.ietf.org/dns/dynupd/secure-ddns-howto.html#forward

so the configuration on the client side looks like this - 

--- /etc/dhclient-eth0.conf ----

send fqdn.fqdn "<hostname.domain.com>.";
send fqdn.encoded on;
send fqdn.server-update off;

key <hostname.domain.com>. {
    algorithm HMAC-MD5;
    secret "<key>";
}

zone <domain.com> {
    key "<hostname.domain.com>.";
}

interface "eth0" {
    send host-name "<hostname>";
    send dhcp-client-identifier <mac_address>;
    send dhcp-lease-time 3600;
    prepend domain-name-servers 127.0.0.1;
    request subnet-mask, broadcast-address, time-offset, routers,
            domain-name, domain-name-servers, host-name;
    require subnet-mask, domain-name-servers;
    script "/sbin/dhclient-script";
}

--- /etc/dhclient-eth0.conf ----


and here are the modfifications on the server side.  just the snippets that
are relevant to this configuration.  the file is fairly large.

--- /etc/namedb/named.conf ----

key <hostname.domain.com>. {
   algorithm HMAC-MD5;
   secret "<key>";
};

...

zone "<domain.com>" in {
  type master;
  file "zones/<domain.com>";
  allow-transfer { 64.121.33.4; 216.218.220.21; };
  allow-query { any; };
  allow-update { none; };
  notify yes;
  update-policy {
        grant <hostname.domain.com>. name <hostname.domain.com>. A TXT;
        grant <hostname.domain.com>. name <hostname2.domain.com>. A TXT;
        grant * self * A TXT;
  };
};

--- /etc/namedb/named.conf ---


clues please?

cheers,

Noah



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040612221029.M93390>