What's new

IPv6 and 384 firmware: dnsmasq failing constantly

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

thetravellor

New Around Here
Ive installed ASUS-WRT Merlin version 384 and am now experiencing the following error constantly in my routers system log:

eb 21 07:14:39 dnsmasq[5847]: bad IPv6 address at line 28 of /etc/dnsmasq.conf
Feb 21 07:14:39 dnsmasq[5847]: FAILED to start up
Feb 21 07:15:09 rc_service: watchdog 389:notify_rc start_dnsmasq
Feb 21 07:15:09 dnsmasq[5864]: bad IPv6 address at line 28 of /etc/dnsmasq.conf
Feb 21 07:15:09 dnsmasq[5864]: FAILED to start up
Feb 21 07:15:39 rc_service: watchdog 389:notify_rc start_dnsmasq
Feb 21 07:15:39 dnsmasq[5884]: bad IPv6 address at line 28 of /etc/dnsmasq.conf
Feb 21 07:15:39 dnsmasq[5884]: FAILED to start up
Feb 21 07:16:09 rc_service: watchdog 389:notify_rc start_dnsmasq
Feb 21 07:16:09 dnsmasq[5902]: bad IPv6 address at line 28 of /etc/dnsmasq.conf
Feb 21 07:16:09 dnsmasq[5902]: FAILED to start up

I am using an Asus RT-AC88U device, native IPv6 is enabled and is assigning IPv6 addresses to clients correctly using stateless allocation via a /56 prefix delegation from my ISP.

The offending line in dnsmasq.conf:

dhcp-option=dnsf11,option6:23,[192.168.2.1]

This is the ifconfig output:

br0 Link encap:Ethernet HWaddr 1C:B7:2C:75:8D:50
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::1eb7:2cff:fe75:8d50/64 Scope:Link
inet6 addr: 2001:44b8:[Masked]::1/56 Scope:Global
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:244109 errors:0 dropped:0 overruns:0 frame:0
TX packets:336405 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23526840 (22.4 MiB) TX bytes:283919966 (270.7 MiB)

This is a completely expected output, this is what my ISP (Internode in Australia) allocates via Prefix delegation.

I am not terribly sure how to solve this, I would genuinely appreciate some community guidance on how to workaround this problem and get dnsmasq working (particularly as I want it to resolve internal host names).

If additional data is needed, please do let me know.
 
Not sure what the source is, but the problem is the syntax for dhcp-option is only for IPv6 addresses to be [] wrapped.

See;
Code:
 Data types allowed are comma separated dotted-quad IPv4 addresses, []-wrapped IPv6 addresses, a decimal number, colon-separated hex digits and a text string. If the optional tags are given then this option is only sent when all the tags are matched.

Reference http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html




Sent from my iPhone using Tapatalk
 
My only suggested workaround (assuming this requires a code fix from Asus/Merlin) is to replace the config file per https://github.com/RMerl/asuswrt-merlin/wiki/Custom-config-files

Assuming there isn’t any dynamic data needed to be loaded into it it should be simple enough to copy the file and fix the offending line.

My equivalent line looks like;
dhcp-option=lan,option6:23,[::]

I’m not sure on the significance of lan vs dnsf11. I’d suggest just fixing the final IP variable as a start.
IPv6 works fine in native mode with it set like that by the way.


Sent from my iPhone using Tapatalk
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top