I am setting up a home server running Debian 10 (Buster), but I have been unable to associate the host's name with its IPv6 addresses.
I have a router running OpenWRT, which is configured with dnsmasq acting as both a DHCP server and a DNS server.
The behavior I'd like to see is the router having both A and AAAA records for the server after it makes successful DHCP request. The server is successfully being assigned both IPv4 and IPv6 addresses by the router (it receives IPv6 addresses for both the ISP-assigned subnet as well as the private subnet). However, while I am able to retrieve the A record, there is no AAAA record created.
I have a desktop running Arch Linux that behaves how I want, so I know it's not an issue with the router. With this host, I am able to lookup both its IPv4 and IPv6 addresses: dig @router -t AAAA desktop
returns two answers, and dig @router -t A desktop
returns one. Requesting the A record works the same for the server, but not the AAAA.
I have the default values in /etc/dhcp/dhclient.conf
. Those settings are:
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
Replacing send host-name
with send fqdn.fqdn
did not change the behavior (A record is present, AAAA is not). dhcp-options(5)
seems to indicate that it is valid to pass something besides a fully-qualified domain name in fqdn.fqdn
:
Specifies the domain name that the client wishes to use. This can be a fully-qualified domain name, or a single label. If there is no trailing '.' character in the name, it is not fully-qualified, and the server will generally update that name in some locally-defined domain.