From 6e5569712fe28ceaa166a8d28928850f89ace12d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 10 May 2012 20:06:37 +0000 Subject: fix connectivity test during install (and possibly standalone) by calling res_init before hostname resolution (#5772) --- lib/network/network.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/network/network.pm') diff --git a/lib/network/network.pm b/lib/network/network.pm index 0c46bc0..ccc3ec9 100644 --- a/lib/network/network.pm +++ b/lib/network/network.pm @@ -6,6 +6,7 @@ package network::network; # $Id: network.pm 268044 2010-04-30 13:31:34Z blino $w use strict; +use c; use lang; use Socket; use common; @@ -167,7 +168,7 @@ sub write_resolv_conf { }; output_with_perm($file, 0644, @search, @nameserver, (map { "# $_\n" } @unknown), "\n# ppp temp entry\n"); - #-res_init(); # reinit the resolver so DNS changes take affect + c::res_init(); # reinit the resolver so DNS changes take affect 1; } else { log::explanations("neither domain name nor dns server are configured"); -- cgit v1.2.1