Option disable-dhcp-nameservers was lost after migration [[ https://github.com/vyos/vyos-1x/blob/63855b5c6b674d102804b43bcda85499a43973a4/src/conf_mode/host_name.py | host_name.py ]] to vyos-hostsd. It is required to add the option processing into new host_name.py.
Description
Description
Details
Details
- Difficulty level
- Normal (likely a few hours)
- Version
- 1.2-rolling-201911021616
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Unspecified (possibly destroys the router)
Related Objects
Related Objects
- Mentioned In
- T1714: Disable DHCP Nameservers Not Working
Event Timeline
Comment Actions
Fix for the problem:
https://github.com/vyos/vyos-1x/pull/160
https://github.com/vyos/vyos-replace/pull/4
Side effect: after deletion of disable-dhcp-nameservers from the configuration, DNS received via DHCP will back to resolv.conf only after the next DHCP renew.
Comment Actions
This is still broken for me on the most recent 1.3 rolling releases:
vyos@cr02-vyos# run show ver Version: VyOS 1.3-rolling-201911190242 Built by: [email protected] Built on: Tue 19 Nov 2019 02:42 UTC Build UUID: 6f4d43b7-028e-48cb-ba51-8c401df5d847 Build Commit ID: c3cbc7af476fb7 Architecture: x86_64 Boot via: installed image System type: bare metal Hardware vendor: QEMU Hardware model: Standard PC (i440FX + PIIX, 1996) Hardware S/N: Hardware UUID: df7f4ff0-711d-4e6d-9d93-a85a412d025a Copyright: VyOS maintainers and contributors [edit] vyos@cr02-vyos# show system name-server name-server fd52:d62e:8011:ffff:192:168:255:1 name-server 192.168.255.1 name-server 1.1.1.1 vyos@cr02-vyos# cat /etc/resolv.conf ### Autogenerated by VyOS ### ### Do not edit, your changes will get overwritten ### nameserver 209.18.47.61 nameserver 209.18.47.62 nameserver fd52:d62e:8011:ffff:192:168:255:1 nameserver 192.168.255.1 nameserver 1.1.1.1 domain int.trae32566.org search int.trae32566.org ipa.trae32566.org trae32566.org [edit] vyos@cr02-vyos# set system disable-dhcp-nameservers [edit] vyos@cr02-vyos# commit [edit] vyos@cr02-vyos# save Saving configuration to '/config/config.boot'... Done [edit] vyos@cr02-vyos# cat /etc/resolv.conf ### Autogenerated by VyOS ### ### Do not edit, your changes will get overwritten ### nameserver 209.18.47.61 nameserver 209.18.47.62 nameserver fd52:d62e:8011:ffff:192:168:255:1 nameserver 192.168.255.1 nameserver 1.1.1.1 domain int.trae32566.org search int.trae32566.org ipa.trae32566.org trae32566.org