diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2014-09-10 22:21:52 +0100 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2014-09-10 22:21:52 +0100 |
commit | 778daa753a558283a200e4f817d0e4a3e48ede10 (patch) | |
tree | 933ca6ba7d14922405d915512d2f55c58704bbf2 /templates/system | |
parent | 8d7c72275d38cfa272b56705acf145f4f83e7d05 (diff) | |
download | vyatta-cfg-system-778daa753a558283a200e4f817d0e4a3e48ede10.tar.gz vyatta-cfg-system-778daa753a558283a200e4f817d0e4a3e48ede10.zip |
vyatta-cfg-system: expand 'set system allow-dhcp-nameservers' logic
Expand the logic in 'set system allow-dhcp-nameservers', so that in
addition to either allowing / denying DHCP related updates to
resolv.conf when the interface changes state, it will also either
add or remove the currently supplied DHCP name-servers depending on
it's state. This change in name-servers will take place immediately
on commit.
Bug #309 http://bugzilla.vyos.net/show_bug.cgi?id=309
Diffstat (limited to 'templates/system')
-rw-r--r-- | templates/system/allow-dhcp-nameservers/node.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/system/allow-dhcp-nameservers/node.def b/templates/system/allow-dhcp-nameservers/node.def index c010baf1..442e003f 100644 --- a/templates/system/allow-dhcp-nameservers/node.def +++ b/templates/system/allow-dhcp-nameservers/node.def @@ -2,3 +2,6 @@ priority: 300 type: bool help: Allow DHCP to update DNS settings default: true + +update: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl --config-mode 1 +delete: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl --config-mode 1
\ No newline at end of file |