summaryrefslogtreecommitdiff
path: root/scripts/vyatta-system-nameservers
AgeCommit message (Collapse)Author
2015-02-26vyatta-cfg-system: redesign the layout and updating of ntpAlex Harpin
When NTP is configured on the system, it not only acts as a client for the configured servers, but also as a server. Although the server is only available as a time source, it still represents a service that the user hasn't specifically enabled. This commit sets the default configuration of NTP to disallow all external access, so the system acts purely as a client by default, and also introduces the ability to configure which addresses / subnets are allowed to both query and use it as a time source. If the servers configured are specified as host names, these are resolved to IP addresses before being added to ntp.conf, with the same process carried out after name server changes. syntax 'set system ntp client address' Bug #94 http://bugzilla.vyos.net/show_bug.cgi?id=94
2015-02-14vyatta-cfg-system: redesign the layout and updating of /etc/resolv.confAlex Harpin
Following the documentation, /etc/resolv.conf should only have comments inserted that start with # at the beginning of a line, comments in other locations are not supported. The exisiting method of tracking changes in this file (done by both vyatta-system-nameservers and vyatta_update_resolv.pl) relies on this unsupported feature. This commit restructures the updates so they use comments on the preceding line to track changes, along with updating the old style comments to the new ones when the relevant scripts are called. This also fixes a previous issue (which was reverted) where IPv6 nameservers worked incorrectly when the /etc/resolv.conf line ended with a comment. Bug #486 http://bugzilla.vyos.net/show_bug.cgi?id=486
2014-09-10vyatta-cfg-system: formatting changes for style consistencyAlex Harpin
Update scripts/vyatta-system-nameservers to have consistent identation levels and style throughout.
2010-11-12Change mode on all executable scriptsStephen Hemminger
The executable bit should be set on scripts. This only impacts the repository, during build install fixes it.
2010-08-16remove low-level config dir usageAn-Cheng Huang
2008-09-11use script for setting/deleting system nameserversMohit Mehta