summaryrefslogtreecommitdiff
path: root/scripts/dns-forwarding
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-08-10 02:43:36 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-08-10 02:43:36 +0000
commit0ee064893b21c8eccdabe6eec5877831a6b79f02 (patch)
tree7a076926e65abd9507be1207bb8f16cd32a5431e /scripts/dns-forwarding
parent03399ce3a9127d78c535c4a6b7e1d8563df3888f (diff)
downloadvyatta-cfg-system-0ee064893b21c8eccdabe6eec5877831a6b79f02.tar.gz
vyatta-cfg-system-0ee064893b21c8eccdabe6eec5877831a6b79f02.zip
- servers being used for dns forwarding written to dnsmasq.conf with more info in comments
- tighten check for updating resolv.conf for domain-names received from dhcp-server
Diffstat (limited to 'scripts/dns-forwarding')
-rw-r--r--scripts/dns-forwarding/vyatta-dns-forwarding.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
index 8639a010..73a4bbe4 100644
--- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl
+++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
@@ -96,7 +96,7 @@ sub dnsforwarding_get_values {
if (@use_nameservers != 0){
$use_dnsmasq_conf = 1;
foreach my $cli_nameserver (@use_nameservers) {
- $output .= "server=$cli_nameserver\n";
+ $output .= "server=$cli_nameserver\t# statically configured\n";
}
}
@@ -113,7 +113,7 @@ sub dnsforwarding_get_values {
}
if (@system_nameservers > 0) {
foreach my $system_nameserver (@system_nameservers) {
- $output .= "server=$system_nameserver\n";
+ $output .= "server=$system_nameserver\t# system\n";
}
}
}
@@ -128,7 +128,7 @@ sub dnsforwarding_get_values {
my @nameserver = split(/ /, $each_nameserver, 2);
my $ns = $nameserver[1];
chomp $ns;
- $output .= "server=$ns\n";
+ $output .= "server=$ns\t# dhcp $interface\n";
}
}
}