Does dnsmasq support PD?

With the default odhcpv6d thingsy we can use and enable ip6assign for downstream pd.
I can not find a reference regarding dnsmasq if is capable of doing so or not.
Is someone aware of it; is this supported by dnsmasq and covered by UCI?

The DHCP server functionality of dnsmasq is v4 only.

How prefixes are stored and propogated to lan interfaces is a bit of a mystery to me. I think that they are handled by netifd scripts and ubus. Odhcpc receives them from wan and, once v6 exists on a lan interface, odhcpd will serve it out, but there is a gap in the middle.

1 Like

You can't find it because dnsmasq cannot delegate IPv6 prefixes. That is handled by odhcpd in OpenWrt, which also does DHCPv6 and RA. Odhcpd can also do DHCPv4, but you have to uninstall the default "IPv6-only" version then install the "full version" instead.

Dnsmasq can do DHCPv6 and RA for quite a while now. It just doesn't support prefix delegation specifically, which is probably one of the reasons why OpenWrt doesn't use dnsmasq to do what odhcpd does. Instead it only does DHCPv4 and DNS. Dnsmasq can respond to A and AAAA queries on both IPv4 and IPv6, so it's not quite "IPv4-only" in that sense.

2 Likes

That's why I have asked. I wanted to ensure I did not missed it.
I have dnsmasq running for ipv4 and ipv6 and I don't have any issues with that. I just was curious if dnsmasq can do PD or not. Thanks for the hint.