FS#56859 - {netctl} Multiple DNS entries ignored

Attached to Project: Arch Linux
Opened by David Rosenstrauch (darose) - Monday, 25 December 2017, 17:35 GMT
Last edited by Jouke Witteveen (jouke) - Tuesday, 26 December 2017, 15:04 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Jouke Witteveen (jouke)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I'm initiating the network on my server using netctl and a modified version of the ethernet-static example. I've added a line for "DNS=", in order to provide a list of DNS servers that will get written to the resolv.conf file. According to the docs (i.e., man netctl.profile) "DNS" can accept an array of nameservers. However, only the first element of the array gets written to resolv.conf


Additional info:
* package version(s)

netctl 1.14-1


* config and/or log files etc.

Config is ethernet-static, but contains the line: DNS=('127.0.0.1' '208.67.222.222' '208.67.220.220')


Steps to reproduce:

The entire array of DNS servers shown above should get written to the /etc/resolv.conf file. But only the first server in the array - 127.0.0.1 - gets written.
This task depends upon

Closed by  Jouke Witteveen (jouke)
Tuesday, 26 December 2017, 15:04 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#34966 
Comment by Jouke Witteveen (jouke) - Monday, 25 December 2017, 18:04 GMT
Could this be a duplicate of  FS#34966 ? If so, the solution is to add

DNSOptions=('resolv_conf_local_only=no')

to your profile. The reason of the behavior you are seeing is that by default resolvconf ignores all non-local servers if a local one is present in the list of servers. I expect you could also change this behavior in /etc/resolvconf.conf, although I have read reports that this doesn't work as expected (expected by me, that is).
Comment by David Rosenstrauch (darose) - Tuesday, 26 December 2017, 14:49 GMT
Yep, looks like the same issue. The DNSOptions= setting didn't fix the issue for me, but setting resolv_conf_local_only=no in resolvconf.conf did.

I have to say, that's a weird default for resolvd to have, but as long as it's configurable I guess I'm good. Thanks for the pointer.

Loading...