diff options
author | Ulrich Drepper <drepper@redhat.com> | 2010-09-14 00:01:42 -0700 |
---|---|---|
committer | Petr Baudis <pasky@suse.cz> | 2010-11-09 02:10:32 +0100 |
commit | 311ad04d94a2e34dc4c418fe19f146e94a41946f (patch) | |
tree | 6ccfd7972448cfc5323a3446e3e52caa236fa29d /resolv | |
parent | 0ea58d8be31aafedeb9efcba4e901d67f2392f53 (diff) | |
download | glibc-311ad04d94a2e34dc4c418fe19f146e94a41946f.tar.gz |
Actually make it possible to user the default name server.
(cherry picked from commit e66e7419a6f58200eec6941b14e2dcff9875cc6c)
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/res_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 && |