Advertisement
snadge

VyOS DNS forwarding via dhcp bug

Sep 24th, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. --- dns_forwarding.py.bak 2021-09-25 12:16:53.914360438 +1000
  2. +++ dns_forwarding.py 2021-09-25 12:26:29.155436648 +1000
  3. @@ -157,8 +157,8 @@
  4. hc.delete_name_server_tags_recursor(['system'])
  5.  
  6. # add dhcp nameserver tags for configured interfaces
  7. - if 'system_name_server_dhcp' in dns:
  8. - for interface in dns['system_name_server_dhcp']:
  9. + if 'system_name_server' in dns:
  10. + for interface in dns['system_name_server']:
  11. hc.add_name_server_tags_recursor(['dhcp-' + interface,
  12. 'dhcpv6-' + interface ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement