projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f42bad9
)
fix default nameserver when resolv.conf doesn't exist
author
Rich Felker
<dalias@aerifal.cx>
Sat, 11 Feb 2012 05:06:32 +0000
(
00:06
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 11 Feb 2012 05:06:32 +0000
(
00:06
-0500)
src/network/__dns.c
patch
|
blob
|
history
diff --git
a/src/network/__dns.c
b/src/network/__dns.c
index 45d9b438f6de009e12b767ab7ea2b0ea25dcd548..0d4f47e0ccdc373c466ad04fcdb969fd370e7185 100644
(file)
--- a/
src/network/__dns.c
+++ b/
src/network/__dns.c
@@
-82,8
+82,9
@@
int __dns_doqueries(unsigned char *dest, const char *name, int *rr, int rrcnt)
}
if (f) __fclose_ca(f);
if (!nns) {
- ns[0].sin.sin_family = AF_INET;
+ ns[0].sin.sin_family =
family =
AF_INET;
ns[0].sin.sin_port = htons(53);
+ ns[0].sin.sin_addr.s_addr = htonl(0x7f000001);
nns=1;
sl = sizeof sa.sin;
}