Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#4197 - dnsmasq fails to start when using IPv6 address for bogusnxdomain #9177

Open
openwrt-bot opened this issue Dec 20, 2021 · 1 comment
Open
Labels
flyspray release/21.02

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Dec 20, 2021

fotvoren:

OpenWrt version: 21.02.1 r16325-88151b8303 / LuCI openwrt-21.02 branch git-21.295.67054-13df80d
dnsmasq version: 2.85-8


When setting an IPv6 address for the bogusnxdomain option in dnsmasq, the server fails to start. IPv6 addresses should be supported. From the [[https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html|dnsmasq manpage]]:
-B, --bogus-nxdomain=[/prefix]
Transform replies which contain the specified address or subnet into "No such domain" replies.
IPv4 and IPv6 are supported.

When setting an IPv6 address like this:

config dnsmasq ... list bogusnxdomain '2606:4700:4700::1111' ...

The server will fail to start:

Mon Dec 20 11:33:39 2021 daemon.crit dnsmasq[17019]: error at line 25 of /var/etc/dnsmasq.conf.cfg01411c Mon Dec 20 11:33:39 2021 daemon.crit dnsmasq[17019]: FAILED to start up Mon Dec 20 11:33:39 2021 daemon.info procd: Instance dnsmasq::cfg01411c s in a crash loop 7 crashes, 0 seconds since last crash

Line 25 of /var/etc/dnsmasq.conf.cfg01411c:

bogus-nxdomain=2606:4700:4700::1111

IPv4 addresses work fine.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jan 3, 2022

dave14305:

IPv6 support was only added as of dnsmasq 2.86. Invalid in 2.85.

@aparcar aparcar added the release/21.02 label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/21.02
Projects
None yet
Development

No branches or pull requests

2 participants