Ipv6: use delegated prefix from ISP with dhcp6 server

Zirias

Aspiring Daemon

Reaction score: 222
Messages: 603

My ISP delegates me a /56 prefix and I successfully used that with dhcp6c to assign /64 prefixes to my network interfaces on the router. These are used with rtadvd to provide the hosts with SLAAC, so far so good.

Now, this prefix delegation is dynamic and I'd still like to have my hosts in DNS, so I can find them from "outside". So, it would be very nice to use the prefix with dhcpv6 instead of slaac, and let the dhcp6 server do dynamic DNS updates. Looking into this, I found dhcpy6d which allows passing a dynamic prefix on the commandline, therefore I guess I could come up with a script parsing the current prefix from some ifconfig output and restart dhcpy6d as needed. This however seems "pretty hacky" to me.

Is there a better way to do what I want?

Alternatively, I'm running a samba DC and windows clients already update DNS, but FreeBSD clients (with samba/winbind) don't, is it possible to have them update DNS as well, in which case SLAAC would do for me?
 
OP
OP
Zirias

Zirias

Aspiring Daemon

Reaction score: 222
Messages: 603

Looks like a nice how-to for getting DNS updates with the ISC dhcp servers working, so thanks, it might be of use ... but it doesn't have anything to say about using a dynamic prefix for dhcpv6 leases, which is my primary issue here. Of course, I could as well update dhcp6s.conf with a script, which would be "hacky" as well, but it might work...
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,698
Messages: 30,639

I haven't tried this yet but the ISC DHCP daemon can also do SLAAC. But I'm not sure if it would still register the IP address in DNS. That's something I was planning on trying out next. The referenced howto at least allowed me to register both IPv4 and IPv6 in the same domain, something I wanted to have for a long time.
 
Top