mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Actually make it possible to user the default name server.
This commit is contained in:
@ -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 &&
|
||||
|
Reference in New Issue
Block a user