ich habe bisher vergeblich versucht, die dynamisch zugewiesenen IPs meines DHCP3-Servers dynamisch in das DNS einzutragen. Mit Konfigurationsdateien gesprochen schaut das so aus:
dhcpd.conf:
Code: Alles auswählen
# globale Optionen
option domain-name bogus.net;
option routers 192.168.1.1;
ddns-update-style interim;
ddns-domainname bogus.net;
update-static-leases true;
ignore client-updates;
# DNS-Adressen des Internet-Service-Providers
# (maximal drei, getrennt durch Leerzeichen)
option domain-name-servers 192.168.1.1;
# dynamischer Adressbereich
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.128 192.168.1.254;
default-lease-time 86400;
max-lease-time 86400;
}
# statische Adressen
group {
use-host-decl-names on;
host hobbes {
hardware ethernet 00:10:dc:c9:7e:9d;
fixed-address 192.168.1.2; }
}
zone bogus.net.internal. {
primary 127.0.0.1;
}
zone 1.168.192.in-addr.arpa. {
primary 127.0.0.1;
}
Code: Alles auswählen
options {
directory "/var/cache/bind";
pid-file "/var/run/bind/named.pid";
notify no;
forwarders { 212.184.248.50; };
auth-nxdomain no;
};
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
// add entries for other zones below here
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.1.zone";
allow-update { localhost; };
};
zone "bogus.net" in {
type master;
file "/etc/bind/default.zone";
allow-update { localhost; };
};
Code: Alles auswählen
$TTL 1W
@ in SOA bogus.net. root.bogus.net. (
1 ; serial
8H ; refresh
2H ; retry
1W ; expiry
11h ) ; minimum
IN NS calvin.bogus.net.
localhost IN A 127.0.0.1
calvin IN A 192.168.1.1
Code: Alles auswählen
$TTL 1W
@ IN SOA bogus.net. root.bogus.net. (
2003022501 ; serial
8H ; refresh
2H ; retry
1W ; expiry
11h ) ; minimum
IN NS calvin.bogus.net.
1 IN PTR calvin.bogus.net.
Code: Alles auswählen
# host hobbes
hobbes.bogus.net does not exist (Authoritative answer)
Code: Alles auswählen
# host 192.168.1.2
192.168.1.2 does not exist (Authoritative answer)
Wo mache ich einen Fehler?
Danke!
Stefan