From e66e7419a6f58200eec6941b14e2dcff9875cc6c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 14 Sep 2010 00:01:42 -0700 Subject: Actually make it possible to user the default name server. --- resolv/res_init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'resolv') diff --git a/resolv/res_init.c b/resolv/res_init.c index 202569ddac..74715f34e9 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -430,6 +430,7 @@ __res_vinit(res_state statp, int preinit) { statp->nsaddr.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1); statp->nsaddr.sin_family = AF_INET; statp->nsaddr.sin_port = htons(NAMESERVER_PORT); + statp->nscount = 1; } if (statp->defdname[0] == 0 && __gethostname(buf, sizeof(statp->defdname) - 1) == 0 && -- cgit v1.2.1