Dear all,
I have a big problem to configure Dynamic DNS and DHCP with Bind9 on a debian machine.
I have no error with named-checkconf and named-checkzone.
I have a debian server with ip 192.168.1.1, and a debian host (machine-user) aquiring ip by dhcp (192.168.1.11 dhcp working).
Here my NSLOOKUP commands :
Code:
> 192.168.1.11
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find 11.1.168.192.in-addr.arpa.: NXDOMAIN
> machine-user
;; connection timed out; no servers could be reached
>
From what you can see, nothing works...
And, of course, I don't know why.
All my DNS conf files are in /etc/bind.
Can you take a look into them?
dhcpd.conf
Code:
server-identifier linux;
ddns-updates on;
ddns-update-style interim;
ddns-domainname "utopia.net.";
ddns-rev-domainname "in-addr.arpa.";
ignore client-updates;
include "/etc/bind/rndc.key";
zone utopia.net. {
primary 127.0.0.1;
key rndc-key;
}
option domain-name "utopia.net";
option domain-name-servers 192.168.1.1;
option ntp-servers 192.168.1.1;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.200;
zone utopia.net. {
primary 192.168.1.1;
key "rndc-key";
}
zone 1.168.192.in-addr.arpa. {
primary 192.168.1.1;
key "rndc-key";
}
}
host dc {
hardware ethernet 00:0C:29:18:FA:90;
fixed-address 192.168.1.2;
}
named.conf
Code:
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
controls {
inet 127.0.0.1 allow {localhost; } keys { "rndc-key"; };
};
named.conf.local
Code:
zone "utopia.net" {
type master;
file "/etc/bind/db.utopia.net";
allow-update { key "rndc-key"; };
notify yes;
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.utopia.net.rev";
allow-update { key "rndc-key"; };
notify yes;
};
include "/etc/bind/rndc.key";
named.conf.options
Code:
options {
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { none; };
};
Fichier de zone db.utopia.net
Code:
$ORIGIN .
$TTL 604800
utopia.net IN SOA utopia.net. root.utopia.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
NS linux.utopia.net.
$ORIGIN utopia.net.
linux A 192.168.1.1
dc A 192.168.1.2
Fichier de zone inversé db.utopia.net.rev
Code:
$ORIGIN .
$TTL 604800
1.168.192.in-addr.arpa IN SOA utopia.net. root.utopia.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
NS linux.utopia.net.
$ORIGIN 1.168.192.in-addr.arpa.
1 PTR linux.utopia.net.
Fichier resolv.conf
Code:
main utopia.net
search utopia.net
nameserver 192.168.1.1
Fichier /etc/hosts
Code:
127.0.0.1 localhost
192.168.1.1 linux.utopia.net linux
# The following lines are desirable for IPv6 capable hosts
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
Please help