summaryrefslogtreecommitdiff
path: root/scripts/system/vyatta_update_resolv.pl
AgeCommit message (Collapse)Author
2015-02-24vyatta-cfg-system: invalid resolv.conf format causing extra DNS requestAlex Harpin
The resolv.conf file contains comments at the end of the search and domain entries which cause unexpected behaviour on lookups. Moving these to the line above in each case fixes the issue. Bug #468 http://bugzilla.vyos.net/show_bug.cgi?id=468
2014-09-14vyatta-cfg-system: rename allow-dhcp-nameservers and change to typelessAlex Harpin
Rename allow-dhcp-nameservers to disable-dhcp-nameservers and update the logic to take the new meaning into account. The option is now also typeless, so the node is either absent (default) or present (enabled). Format 'set / delete system disable-dhcp-nameservers' Linked to Bug #182 and Bug #308 Bug #314 http://bugzilla.vyos.net/show_bug.cgi?id=314
2014-09-10vyatta-cfg-system: expand 'set system allow-dhcp-nameservers' logicAlex Harpin
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
2014-09-09vyatta-cfg-system: add 'set system allow-dhcp-nameservers' optionAlex Harpin
Instead of simply allowing / denying DHCP related updates to resolv.conf based on the current values of 'set system name-server', as initially proposed for Bug #182 (http://bugzilla.vyos.net/show_bug.cgi?id=182), this patch replaces that behaviour with a global option to allow / deny these updates. Add 'set system allow-dhcp-nameservers' as a boolean value that has the default value of true, so allowing DHCP nameserver updates by default. Bug #308 http://bugzilla.vyos.net/show_bug.cgi?id=308
2014-09-09vyatta-cfg-system: revert bb71cf5b7b3a48812e28dbefba8c535f9bbf9973Alex Harpin
Reverting commit bb71cf5b7b3a48812e28dbefba8c535f9bbf9973 as it breaks the logic in vyatta_update_resolv.pl for removing name servers when called by dhclient-script. As it stands, the commit causes name server entries to be left behind in resolv.conf when a DHCP interface is deleted, resulting in possibly old or invalid entries remaining indefinitely. Bug #307 http://bugzilla.vyos.net/show_bug.cgi?id=307
2014-09-09vyatta-cfg-system: formatting changes for style consistencyAlex Harpin
Update scripts/system/vyatta_update_resolv.pl to have consistent identation levels and style throughout.
2014-09-07vyatta-cfg-system: prevent dhcp updating dns when statically configuredAlex Harpin
When DNS settings are statically configured, prevent DHCP interfaces from appending to resolv.conf with additional name servers. If the system has been configured with a static name server, just use that instead of accepting ISP provided name servers. These can be accepted again by simply deleting the statically configured name servers. Bug #182 http://bugzilla.vyos.net/show_bug.cgi?id=182
2014-09-07vyatta-cfg-system: formatting changes for style consistencyAlex Harpin
Update scripts/system/vyatta_update_resolv.pl to have consistent identation levels and style throughout.
2014-03-21using a DNS server with an IPv6 address.tea2ka
It seems that immediately the back of an IPv6 address will not be normally recognized if it is not "\n" when using a DNS server with an IPv6 address.
2010-11-16update call to error location api.Michael Larson
2010-10-15change to accessor for outputerrorroot
2010-10-08modified reference error location.root
2010-10-08use new error reference location methodroot
2010-07-30new API changesAn-Cheng Huang
2010-07-22remove unused optionsAn-Cheng Huang
* high-level operations should not access CLI implementation details.
2010-06-04Fix use of bareword file handlesStephen Hemminger
Rather than using BAREWORD file handles, use 3 arg open and local variable.
2009-06-17Merged from Jenner.Bob Gilligan
2008-11-21Convert to Vyatta::Config hierarchyStephen Hemminger
2008-08-10- servers being used for dns forwarding written to dnsmasq.conf with more ↵Mohit Mehta
info in comments - tighten check for updating resolv.conf for domain-names received from dhcp-server
2008-08-08tighten the checks for checking the existence or removal or nameserversMohit Mehta
2008-08-08tighten regex pattern to get dhclient resolv filesMohit Mehta
2008-06-26=> Modified vyatta_update_resolv.pl to update (i.e. add and remove) ↵Mohit Mehta
'name-server' and 'domain-name-server' options in /etc/resolv.conf received by a dhcp client for an interface => Modified name-server/node.def so as to have the name-server set by our CLI on the top of /etc/resolv.conf to take priority over name-servers received from dhcp client
2008-03-10Update to GPLv2Stephen Hemminger
Replace references to VPL 1.0 with GPLv2
2007-12-26Treat 'system domain-name $(@)' and 'system domain-search domain $(@)' as ↵Marat Nepomnyashy
mutually exclusive. Generate an error message and refuse commit if both are specified. Bug 2256 fix.
2007-12-18Rewrite '/etc/resolv.conf' each time config at 'system domain-search domain ↵Marat Nepomnyashy
$(@)' changes to update the 'search' params. Bug 2113 fix.