summaryrefslogtreecommitdiffstats
path: root/lib/network/tools.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-04 23:26:48 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-04 23:26:48 +0000
commit0d8d314fdae61a3d248462ff01b8354494b5124e (patch)
tree5096f35c29bad2953ca10567dea5b3cb509060b4 /lib/network/tools.pm
parentb3ed8b308c58c8577f295227175bb8a497de7edb (diff)
downloaddrakx-net-0d8d314fdae61a3d248462ff01b8354494b5124e.tar
drakx-net-0d8d314fdae61a3d248462ff01b8354494b5124e.tar.gz
drakx-net-0d8d314fdae61a3d248462ff01b8354494b5124e.tar.bz2
drakx-net-0d8d314fdae61a3d248462ff01b8354494b5124e.tar.xz
drakx-net-0d8d314fdae61a3d248462ff01b8354494b5124e.zip
Retreiving updated DNS server information.
Diffstat (limited to 'lib/network/tools.pm')
-rw-r--r--lib/network/tools.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/network/tools.pm b/lib/network/tools.pm
index adddf0e..ca4c50f 100644
--- a/lib/network/tools.pm
+++ b/lib/network/tools.pm
@@ -196,6 +196,8 @@ sub get_interface_status {
sub get_default_connection {
my ($net, $o_gw_intf) = @_;
my $gw_intf = $o_gw_intf || get_default_gateway_interface($net) or return;
+ $net->{resolv} = {};
+ add2hash($net->{resolv}, network::network::read_resolv_conf());
return $gw_intf, get_interface_status($gw_intf), $net->{resolv}{dnsServer};
}