Actually make it possible to user the default name server.
This commit is contained in:
parent
c044aa7535
commit
e66e7419a6
|
@ -1,3 +1,7 @@
|
||||||
|
2010-09-14 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* resolv/res_init.c (__res_vinit): Count the default server we added.
|
||||||
|
|
||||||
2010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
|
2010-09-08 Chung-Lin Tang <cltang@codesourcery.com>
|
||||||
Ulrich Drepper <drepper@redhat.com>
|
Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -430,6 +430,7 @@ __res_vinit(res_state statp, int preinit) {
|
||||||
statp->nsaddr.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1);
|
statp->nsaddr.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1);
|
||||||
statp->nsaddr.sin_family = AF_INET;
|
statp->nsaddr.sin_family = AF_INET;
|
||||||
statp->nsaddr.sin_port = htons(NAMESERVER_PORT);
|
statp->nsaddr.sin_port = htons(NAMESERVER_PORT);
|
||||||
|
statp->nscount = 1;
|
||||||
}
|
}
|
||||||
if (statp->defdname[0] == 0 &&
|
if (statp->defdname[0] == 0 &&
|
||||||
__gethostname(buf, sizeof(statp->defdname) - 1) == 0 &&
|
__gethostname(buf, sizeof(statp->defdname) - 1) == 0 &&
|
||||||
|
|
Loading…
Reference in New Issue