I have incorporated these changes (aside from the he specific config) into the next build of cero. (which has dnsmasq 2.66 test12 in it.
Thx everyone for tracking this down.
Incidentally, how do I get dnsmasq to hand out more than one dns server to clients? I'd like it to
do so - one for ipv6 and for ipv4, or 2 for ipv4, etc.
What happens now is you can configure dnsmasq to talk to tons of dns servers but it only hands out itself. Given the timeouts in DNS and so on it seems saner to hand out two, or more, to clients, as per the RFC (if you have two or more)
Another place I was stuck was on getting dhcpv6-pd to work. I'd setup an isc-dhcp server as a test (on a laptop, pretending to be the master box)
and I could see it handing out a /56 prefix, as configured, but only the external ge00 address would be configured. What seemed to be happening was bombing out in the netifd script not putting in the ".ge00" interface into a ubus function call. It was also only distributing a /128 to clients...
Perhaps now that this other stuff is correct, that will work. I will try it in the morning.
this was how I'd setup the "dhcpv6 server"'s /etc/dhcp/dhcpd.conf
subnet6 2001:db8:0:1::/64 {
# Range for clients
range6 2001:db8:0:1::129 2001:db8:0:1::254;
# Additional options
option dhcp6.name-servers 2001:db8:0:1::1;
option dhcp6.domain-search "
cerowrt.org";
# Prefix range for delegation to sub-routers
prefix6 2001:db8:0:100:: 2001:db8:0:f00:: /56;
# Example for a fixed host address
host specialclient {
host-identifier option dhcp6.client-id 00:01:00:01:4a:1f:ba:e3:60:b9:1f:01:23:45;
fixed-address6 2001:db8:0:1::127;
}
}
I think the last unaligned_instruction trap is dead.
Lastly, there is another nifty new feature of dnsmasq - secondary domain updates. I have no idea how to get that going...