Networking Forums

Networking Forums > Computer Networking > Linux Networking > DHCP, BIND9 - dynamic dns update

Reply
Thread Tools Display Modes

DHCP, BIND9 - dynamic dns update

 
 
Hekaton Keires
Guest
Posts: n/a

 
      01-22-2005, 09:26 AM
Hello all,

can someone help me with the problem stated in subject? even if i think that
all required configuration steps were performed i'm still unable to update
my dns database.

### /chroot/dns/etc/bind/named.con ###
options {
directory "/var/bind";
auth-nxdomain yes;
};

key "rndc-key" {
algorithm hmac-md5;
secret "...";
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};

zone "chaos.it" {
type master;
file "chaos.it";
allow-update { key rndc-key; };
};

zone "254.168.192.in-addr.arpa" {
type master;
file "254.168.192.in-addr.arpa";
allow-update { key rndc-key; };
};

[cut]

logging {
channel update_debug {
file "/var/log/update-debug.log";
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};

channel security_info {
file "/var/log/named-auth.info";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};

category update { update_debug; };
category security { security_info; };
};
### EOF ###

### /chroot/dns/var/bind/chaos.it ###
$TTL 3D
@ IN SOA ns.chaos.it. askar.chaos.it. (
1
8H
2H
4W
1D)
NS ns.chaos.it.
ns A 192.168.254.3
### EOF ###

### /chroot/dns/var/bind/254.168.192.in-addr.arpa ###
$TTL 3D
@ IN SOA ns.chaos.it. askar.chaos.it. (
1
8H
2H
4W
1D)
NS ns.chaos.it.
3 PTR ns.chaos.it.
### EOF ###

and when i start daemon no error is reported

Jan 22 01:54:47 [named] starting BIND 9.2.2-P1 -u named -n 1 -t /chroot/dns
Jan 22 01:54:47 [named] using 1 CPU
Jan 22 01:54:47 [named] loading configuration from '/etc/bind/named.conf'
Jan 22 01:54:47 [named] no IPv6 interfaces found
Jan 22 01:54:47 [named] listening on IPv4 interface lo, 127.0.0.1#53
Jan 22 01:54:47 [named] listening on IPv4 interface eth0, 192.168.254.3#53
Jan 22 01:54:47 [named] command channel listening on 127.0.0.1#953
Jan 22 01:54:47 [named] zone 0.0.127.in-addr.arpa/IN: loaded serial 1
Jan 22 01:54:47 [named] zone 254.168.192.in-addr.arpa/IN: loaded serial 1
Jan 22 01:54:47 [named] zone chaos.it/IN: loaded serial 1
Jan 22 01:54:47 [named] zone localdomain/IN: loaded serial 1
Jan 22 01:54:47 [named] running

and below follows the configuration file of dhcp

### /chroot/dhcp/etc/dhcp/dhcpd.conf ###
default-lease-time 600;
max-lease-time 7200;

authoritative;

ddns-updates on;
ddns-domainname "chaos.it";
ddns-rev-domainname "in-addr.arpa";
ddns-update-style interim;

subnet 192.168.254.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.254.255;
option domain-name-servers 192.168.254.3;
option domain-name "chaos.it";

key "rndc-key" {
algorithm hmac-md5;
secret "...";
}

; zone chaos.it. {
key rndc-key;
primary 127.0.0.1;
}

zone 254.168.192.in-addr.arpa. {
key rndc-key;
primary 127.0.0.1;
}

range 192.168.254.65 192.168.254.126;

host nyx.chaos.it {
hardware ethernet 00:e0:18:2c:23:27;
fixed-address 192.168.254.2;
}
}
### EOF ###

and this is log for start dhcp

Jan 22 11:03:55 [dhcpd] Wrote 0 deleted host decls to leases file.
Jan 22 11:03:55 [dhcpd] Wrote 0 new dynamic host decls to leases file.
Jan 22 11:03:56 [dhcpd] Wrote 1 leases to leases file.

but when from the client i still have

# dhcpcd eth0 -h nyx.chaos.it
# dig nyx.chaos.it
; <<>> DiG 9.2.3 <<>> nyx.chaos.it
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 31672
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;nyx.chaos.it. IN A

;; AUTHORITY SECTION:
chaos.it. 86400 IN SOA ns.chaos.it.
askar.chaos.it. 1 28800 7200 2419200 86400

;; Query time: 32 msec
;; SERVER: 192.168.254.3#53(192.168.254.3)
;; WHEN: Sat Jan 22 11:23:13 2005
;; MSG SIZE rcvd: 75

and no answer section... the fact is that log files of bind neither report
any kind of auth error nor try by the dhcpd of updating anything - so maybe
the problem is somewhere in dhcpd configuration?
--
Hekaton Keires,
En to phronein maedhen aedistos bios.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISC dhcp & bind9 ddns problem Cousin Scuzzy Linux Networking 0 03-06-2006 11:02 PM
what exactly is a 'secure dynamic' update? djc Windows Networking 2 02-06-2006 12:32 PM
ddclient to update dynamic DNS entries at a dynamic DNS service Larry Cohen Linux Networking 1 09-12-2004 01:47 AM
Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update Mads Ravn Linux Networking 0 06-29-2004 05:27 PM
newbie dynamic dns update via dhcp question Capstar Linux Networking 3 10-07-2003 04:19 PM



1 2 3 4 5 6 7 8 9 10 11