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
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
|
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
Tuesday, 26 December 2017, 15:04 GMT
Reason for closing: Duplicate
Additional comments about closing:
FS#34966? If so, the solution is to addDNSOptions=('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).
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.