now e.f.f.3.ip6.arpa is delegated, we no longer need to query ip6.int
Obtained from: KAME
This commit is contained in:
parent
24412bd1af
commit
0def575fd7
@ -683,12 +683,6 @@ _dns_gethostbyaddr(void *rval, void *cb_data, va_list ap)
|
||||
return NS_NOTFOUND;
|
||||
}
|
||||
n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf->buf, sizeof buf->buf);
|
||||
if (n < 0 && af == AF_INET6) {
|
||||
*qp = '\0';
|
||||
strlcat(qbuf, "ip6.int", sizeof(qbuf));
|
||||
n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf->buf,
|
||||
sizeof buf->buf);
|
||||
}
|
||||
if (n < 0) {
|
||||
free(buf);
|
||||
dprintf("res_query failed (%d)\n", n);
|
||||
|
@ -2082,7 +2082,7 @@ _dns_ghbyaddr(void *rval, void *cb_data, va_list ap)
|
||||
querybuf *buf;
|
||||
char qbuf[MAXDNAME+1];
|
||||
char *hlist[2];
|
||||
char *tld6[] = { "ip6.arpa", "ip6.int", NULL };
|
||||
char *tld6[] = { "ip6.arpa", NULL };
|
||||
char *tld4[] = { "in-addr.arpa", NULL };
|
||||
char **tld;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user