summaryrefslogtreecommitdiffstats
path: root/lib/network/tools.pm
diff options
context:
space:
mode:
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};
}