diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-04 23:26:48 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-04 23:26:48 +0000 |
commit | 0d8d314fdae61a3d248462ff01b8354494b5124e (patch) | |
tree | 5096f35c29bad2953ca10567dea5b3cb509060b4 | |
parent | b3ed8b308c58c8577f295227175bb8a497de7edb (diff) | |
download | drakx-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.
-rw-r--r-- | lib/network/tools.pm | 2 |
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}; } |