[FS#3998] netifd: domain search list is written to resolv.conf incorrectly

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Mon Aug 30 19:08:24 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Nathan Lutchansky (lutchann) 

Attached to Project - OpenWrt/LEDE Project
Summary - netifd: domain search list is written to resolv.conf incorrectly
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - openwrt-21.02
Due in Version - Undecided
Due Date - Undecided
Details - 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.

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3998

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list