mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132508
@ -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