Page MenuHomeVyOS Platform

Fix various name server config issues
Needs testing, Requires assessmentPublicBUG


When a PPPoE session is connected, pppd will update /etc/resolv.conf regardless of system name-server option unless no-peer-dns is set. This is because pppd vendors scripts /etc/ppp/ip-up.d/0000usepeerdns and /etc/ppp/ip-down.d/0000usepeerdns, which updates /etc/resolv.conf on PPPoE connection and reverts the change on disconnection.

There is a typo in /etc/dhcp/dhclient-enter-hooks.d/04-vyos-resolvconf, which misspells variable name new_dhcp6_name_serversasnew_dhcpv6_name_servers. This causes IPv6 name server entries in vyos-hostsd` not updated when dhclient receives nameservers from DHCPv6.

Regular expressions in scripts under /etc/dhcp/dhclient-enter-hooks.d and /etc/dhcp/dhclient-exit-hooks.d/ are not enclosed in ^$, so those IPv4 related branches (like BOUND) could be mistakenly executed when an IPv6 reason (like BOUND6) is given.


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Created PR to fix this:
This issue also exists in 1.3 though I didn't backport it.

There is also a service called "pppd-dns.service" that references "/etc/ppp/ip-down.d/0000usepeerdns", this service is enabled by default and fails on new installs.
It should be disabled and optionally, the file removed too.

This on the 1.3 branch mind you

Viacheslav changed the task status from Open to Needs testing.Wed, Jan 25, 8:20 AM