Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#53572 - [netctl] Stale nameservers in resolv.conf
Attached to Project:
Arch Linux
Opened by Yuval Adam (yuvadm) - Wednesday, 05 April 2017, 13:35 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 30 November 2018, 05:10 GMT
Opened by Yuval Adam (yuvadm) - Wednesday, 05 April 2017, 13:35 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 30 November 2018, 05:10 GMT
|
DetailsWhen using netctl (v1.12) in some cases, there can remain stale nameservers from previous connections in /etc/resolv.conf.
The following scenario is reproducible for me on a specific corporate network: # netctl start ethdhcp $ cat /etc/resolv.conf domain corp.example.com nameserver 1.2.3.4 nameserver 5.6.7.8 # netctl stop-all # netctl start home $ cat /etc/resolv.conf domain corp.example.com nameserver 1.2.3.4 nameserver 5.6.7.8 nameserver 192.168.1.1 In this case, ethdhcp is a copy of the plain example ethernet-dhcp profile, and home is a WPA2 wireless connection. As you can see, stale nameservers remain in resolv.conf even after disconnecting. This creates unreasonable delays in DNS resolution as two stale IPs have to wait to timeout before reaching the current nameserver. This bug was discussed at https://bbs.archlinux.org/viewtopic.php?id=224018 and a dhcpcd developer even chimed in, but from all I can understand this is a netctl bug and not an upstream one. |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Friday, 30 November 2018, 05:10 GMT
Reason for closing: Fixed
Additional comments about closing: The bug mentioned in the comments is somewhat unrelated to the initial report and fixed in bf0a3da1
Friday, 30 November 2018, 05:10 GMT
Reason for closing: Fixed
Additional comments about closing: The bug mentioned in the comments is somewhat unrelated to the initial report and fixed in bf0a3da1
DHCPReleaseOnStop=yes
to your profile?
I have the same problem but for diffrent connection type - ppp. It's not IP connection, so DHCPReleaseOnStop=yes does nothing. That option only works on IP connections, but there are more types of connections that get DNS name servers upon connecting, and netctl stop-all doesn't clear /etc/resolv.conf neither delete all files under /run/resolvconf/interfaces
I've got this, when disconnecting:
systemd[1]: Stopping Networking for netctl profile ppp-orange...
pppd[5186]: Terminating on signal 15
network[5332]: Stopping network profile 'ppp-orange'...
network[5332]: Stopped network profile 'ppp-orange'
pppd[5186]: Connect time 4.1 minutes.
pppd[5186]: Sent 304 bytes, received 0 bytes.
pppd[5186]: Terminating on signal 15
pppd[5186]: Child process /etc/ppp/ip-down (pid 5338) terminated with signal 15
pppd[5186]: Connection terminated.
pppd[5186]: Exit.
systemd[1]: Stopped Networking for netctl profile ppp-orange.
^
pppd[6224]: Terminating on signal 15
pppd[6224]: Connect time 4.4 minutes.
pppd[6224]: Sent 80 bytes, received 0 bytes.
pppd[6224]: Connection terminated.
pppd[6224]: Exit.
timeout_wait 1 '[[ ! -f $pidfile ]]'
Good work, thank You.