Help with DDNS/DDHCP configuration required

Alex Sharaz A.Sharaz at hull.ac.uk
Mon Nov 8 11:41:17 UTC 2004


Chaps,


I'm just starting to look at configuring my  Bind 9.3 server to support 
DDNS updates.

I *think* I've got things configured correctly, but somethings not quite 
right somewhere.

What I want to do is use omapi on the DHCP server to create a host entry 
and have the dhcp server generate the appropriate forward and reverse 
entries. Suppose the questions are :-

[for the dhcp list]  is if i use omapi to create a dhcp entry, if the 
config is right, will it attempt a DDNS update.

[for the bind list] with my given log configuation, I either can't see the 
wood from the trees, there isn't an update request coming in, or the 
logging isn't set up correctly. Is there any special logging config I need 
to set up to see what's happening.


The omapi side of things works and I can create/delete an entry on the dhcp 
server.


Here are sections out of my  config files:-

1). dhcpd.conf

key isc-dhcp-omapi {
algorithm HMAC-MD5;
secret <generated key> }

omapi-key isc-dhcp-omapi;

ddns-update-style interim;
ddns-ttl 7200;
authoritative;

subnet 150.237.70.0 netmask 255.255.255.0 {
option broadcast-address 150.237.70.255;
option routers 150.237.70.1   ;
option domain-name-servers  150.237.5.252,150.237.128.10,150.237.128.27;
default-lease-time 604800;
max-lease-time 2592000;
  # don't let clients modify their own records
  ignore client-updates;
  # dynamic DNS updates
  ddns-updates on;
  ddns-domainname "adir.hull.ac.uk.";
  ddns-rev-domainname "in-addr.arpa.";
  option domain-name "adir.hull.ac.uk";
zone adir.hull.ac.uk {
        primary 150.237.128.27;
        key "isc-dhcp-omapi";
  }
  zone 70.237.150.in-addr.arpa {
        primary 150.237.128.27;
        key "isc-dhcp-omapi";
  }
}

and the named.conf file has

 key isc-dhcp-omapi {
        algorithm hmac-md5;
        secret <generated key;
 };
and then

zone "70.237.150.IN-ADDR.ARPA" {
        file "zone.70";
        type master;
update-policy { grant isc-dhcp-omapi subdomain 70.237.150.in-addr.arpa. PTR 
TXT;};
};
zone "adir.hull.ac.uk" {
        type master;
        file "zone.adir";
        update-policy {grant isc-dhcp-omapi subdomain adir.hull.ac.uk. ANY; 
};
};

for the forward and reverse zones I want to update.


The logging config is
logging {

   channel default_logging {
      file "/usr/local/named-logs/named.log";
      severity info;
      print-time yes;
      print-category yes;
      print-severity yes;
   };

   channel default_queries {
      file "/usr/local/named-logs/named.queries";
      severity info;
      print-time yes;
      print-category yes;
      print-severity yes;
   };

   channel default_lame-servers {
      file "/usr/local/named-logs/named.lame-servers";
      severity info;
      print-time yes;
      print-category yes;
      print-severity yes;
   };

   channel default_panic {
      file "/usr/local/named-logs/named.panic";
      severity debug 3;
      print-time yes;
      print-category yes;
      print-severity yes;
   };

   channel default_stats {
      file "/usr/local/named-logs/named.stats";
      severity info;
      print-time yes;
      print-category yes;
      print-severity yes;
   };

   channel default_notify {
      file "/usr/local/named-logs/named.notify";
      severity info;
      print-time yes;
      print-category yes;
      print-severity yes;
   };

   channel default_os {
      file "/usr/local/named-logs/named.os-specific";
      severity info;
      print-time yes;
      print-category yes;
      print-severity yes;
   };
   channel default_security {
      file "/usr/local/named-logs/named.security";
      severity info;
      print-time yes;
      print-category yes;
      print-severity yes;
   };

   channel default_general {
      file "/usr/local/named-logs/named.general";
      severity info;
      print-time yes;
      print-category yes;
      print-severity yes;
   };

   category general {default_general; };
   category default {default_logging; };
   category notify {default_notify;  };
   category lame-servers {default_lame-servers; };
   category security {default_security; };
   category queries {default_queries; };

};

Any help appreciated.

Alex

Sent using Mulberry 3.1.2



More information about the bind-users mailing list