diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-26 16:52:58 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-26 16:52:58 +0000 |
commit | 34b70e943b9b8b133434ab7705e2543feee85c8c (patch) | |
tree | 0875295dda966de73afbd4bdef52ec8f63f2ce5f | |
parent | 10ca4cd0c4ab9cb268d301f75e7f73fca340651a (diff) | |
download | vyatta-op-34b70e943b9b8b133434ab7705e2543feee85c8c.tar.gz vyatta-op-34b70e943b9b8b133434ab7705e2543feee85c8c.zip |
=> display text saying the domain-name received from dhcp-server
is overridden by domain-name set in our CLI in op-mode command
'show dhcp client leases'
-rwxr-xr-x | scripts/vyatta-show-dhclient.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/vyatta-show-dhclient.pl b/scripts/vyatta-show-dhclient.pl index b696f8f..a158598 100755 --- a/scripts/vyatta-show-dhclient.pl +++ b/scripts/vyatta-show-dhclient.pl @@ -122,7 +122,14 @@ sub dhclient_show_lease { } } print "subnet mask: $new_subnet_mask\n" if defined $new_subnet_mask; - print "domain name: $new_domain_name\n" if defined $new_domain_name; + if (defined $new_domain_name) { + print "domain name: $new_domain_name"; + if (`grep domain /etc/resolv.conf 2> /dev/null`) { + print "\t[overridden by domain-name set using CLI]\n"; + } else { + print "\n"; + } + } print "router : $new_routers\n" if defined $new_routers; print "name server: $new_domain_name_servers\n" if defined $new_domain_name_servers; |