jpsollie Apprentice
Joined: 17 Aug 2013 Posts: 290
|
Posted: Mon Apr 04, 2022 5:29 am Post subject: install DNS update with ipv6 on a SLAAC config |
|
|
I have a ipv6 subnet of my ISP which is advertised via the DSL modem,
I installed DHCPv6 server on a separate gentoo box to set domain name, DNS servers, and NTP.
I'd like it to register IPV6 addresses on my BIND DNS server as well, but no reason why it doesn't work.
DHCPDv6 logs (part of it):
Code: |
Apr 4 06:43:23 src@linuxserver dhcpd[3191]: Forward map from APBureau.costadelsollie.local to 2a02:578:8538:b00:b433:4cd2:8413:f360 FAILED: static entry of the other protocol type exists.
Apr 4 06:50:33 src@linuxserver dhcpd[3191]: Renew message from fe80::babe:f4ff:fe4a:53ca port 546, transaction ID 0xDE012600
Apr 4 06:50:33 src@linuxserver dhcpd[3191]: Reply NA: address 2a02:578:8538:b00:43c:bfb7:b2ae:1fbd to client with duid 00:03:00:01:b8:be:f4:4a:53:ca iaid = -196455478 valid for 2400 seconds
Apr 4 06:50:33 src@linuxserver dhcpd[3191]: Sending Reply to fe80::babe:f4ff:fe4a:53ca port 546
Apr 4 06:52:06 src@linuxserver dhcpd[3191]: Renew message from fe80::babe:f4ff:fe39:e27f port 546, transaction ID 0x6AADBD00
Apr 4 06:52:06 src@linuxserver dhcpd[3191]: Reply NA: address 2a02:578:8538:b00:8da4:9a20:87b7:80e3 to client with duid 00:03:00:01:b8:be:f4:39:e2:7f iaid = -197533057 valid for 2400 seconds
|
The first line (which is exactly why I chose it) makes me think dhcpdv6 indeed tries to register. The fact it doesn't work for APBureau is irrelevant: it indeed has a static IP and as such a static record in DNS. But why doesn't it work ?
Code: |
option dhcp6.domain-search "costadelsollie.local";
option dhcp6.name-servers fe80::2c0:8ff:fe9d:6460, fe80::e2d5:5eff:fe2a:d63c;
default-lease-time 2400;
max-lease-time 3600;
min-lease-time 1200;
ddns-update-style interim;
ddns-dual-stack-mixed-mode on;
ddns-other-guard-is-dynamic on;
ddns-guard-id-must-match off;
ddns-domainname "costadelsollie.local";
authoritative;
update-optimization false;
update-static-leases on;
update-conflict-detection true;
deny client-updates; subnet6 2a02:578:8538:b00::/64 {
range6 2a02:578:8538:b00::/64;
option dhcp6.name-servers fe80::e2d5:5eff:fe2a:d63c, fe80::2c0:8ff:fe9d:6460;
option dhcp6.domain-search "costadelsollie.local";
option dhcp6.sntp-servers fe80::e2d5:5eff:fe2a:d63c;
} # A slightly different configuration for an internal subnet. include "/etc/dhcp/costadelsollie.key"; zone costadelsollie.local. {
primary6 ::1;
key ddns.costadelsollie.local;
}
|
_________________ The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img] |
|