DHCPd only updating the forward zone
Dan Egli
dan at newideatest.site
Sun Dec 20 12:22:47 UTC 2020
Here is the zone files. Note that the zone doesn't exist on the public
internet.
10.168.192.arpa.zone:
$TTL 10m
@ IN SOA pluto.eglifamily.name. dan.eglifamily.name. (
2 ; serial
30m ; refresh
5m ; retry
1d ; expire
1m ; negative response cache
)
NS pluto.eglifamily.name.
1 PTR charon.eglifamily.name.
2 PTR pluto.eglifamily.name.
3 PTR jupiter.eglifamily.name.
eglifamily.zone:
$TTL 6h
@ IN SOA pluto.eglifamily.name. dan.eglifamily.name. (
2 ; serial
30m ; refresh
5m ; retry
1d ; expire
1m ; negative response cache
)
NS pluto.eglifamily.name.
MX 1 jupiter
charon IN A 192.158.10.1
pluto IN A 192.168.10.2
jupiter IN A 192.168.10.3
After a machine called Venus boots, there's also a .jnl file for
eglifamily.zone, but NOT for 10.168.192.arpa.zone
Here's named.conf:
acl "xfer" {
none;
};
acl "trusted" {
10.0.2.15/32;
192.168.10.0/24;
127.0.0.0/8;
::1/128;
# eventualy add valid IPv6 addresses here.
};
acl "myself" {
127.0.0.0/24;
::1/128;
192.168.10.2/32;
10.0.2.15/32;
};
options {
directory "/var/bind";
pid-file "/run/named/named.pid";
tkey-gssapi-keytab "/var/lib/samba/bind-dns/dns.keytab";
minimal-responses yes;
listen-on-v6 { none; }; // for now
listen-on { 192.168.10.2; 127.0.0.1; };
allow-query {
trusted;
};
allow-query-cache {
trusted;
};
allow-recursion {
trusted;
};
allow-transfer {
none;
};
allow-update {
myself;
};
dnssec-validation auto;
};
logging {
channel default_log {
file "/var/log/named/named.log" versions 5 size 50M;
print-time yes;
print-severity yes;
print-category yes;
};
category default { default_log; };
category general { default_log; };
};
include "/etc/bind/rndc.key";
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1/32; ::1/128; } keys {
"rndc-key"; };
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
notify no;
};
zone "eglifamily.name" {
type master;
file "pri/eglifamily.zone";
notify yes;
};
zone "10.168.192.in-addr.arpa" {
type master;
file "pri/10.168.192.arpa.zone";
notify yes;
};
include "/var/lib/samba/bind-dns/named.conf";
Note that the samba file only contains directives to load the BIND9_DLZ
module.
Here's dhcpd.conf:
default-lease-time 3600;
max-lease-time 43200;
ddns-update-style interim;
authoritative;
log-facility local1;
allow booting;
subnet 10.0.0.0 netmask 255.0.0.0 {
# no services at all! That's the llnk from the ISP. Don't touch it!
}
subnet 192.168.10.0 netmask 255.255.255.0 {
interface enp0s8;
range 192.168.10.128 192.168.10.254;
if exists user-class and option user-class = "iPXE" {
filename "pxelinux.efi";
} else {
filename "pxelinux.0";
}
next-server 192.168.10.3;
option domain-name-servers 192.168.10.2, 8.8.8.8;
option domain-name "eglifamily.name";
option routers 192.168.10.1;
}
host fixed-1 {
hardware ethernet 08:00:27:D5:AA:3C;
fixed-address 192.168.10.64;
option host-name "fixed-1";
ddns-hostname "fixed-1.eglifamily.name";
}
--
Dan Egli
From my Test Server
More information about the dhcp-users
mailing list