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#3998 - netifd: domain search list is written to resolv.conf incorrectly #8995

Open
openwrt-bot opened this issue Aug 31, 2021 · 0 comments
Open
Labels
flyspray release/21.02

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Aug 31, 2021

lutchann:

write_resolv_conf_entries() writes the DNS search domains to resolv.conf.auto one per line, whereas the musl resolver expects all domains to be listed on one line, separated by spaces.

I.e., netifd currently writes this:

# Interface lan
nameserver 192.168.100.100
search domain1.com
search domain2.com

But musl wants this:

# Interface lan
nameserver 192.168.100.100
search domain1.com domain2.com

While other resolvers are happy to append multiple "search" lines together to form the domain search list, musl overwrites its domain search list every time a new "search" line is encountered. The result is that only the lowest priority search domain specified by the network administrator is searched.

@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