| Summary: | "domain" directive in /etc/resolv.conf not consistent when using IPv6 and IPv4 | ||
|---|---|---|---|
| Product: | Base System | Reporter: | borjamar <borjamar> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.0-CURRENT | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
borjamar
2000-02-21 21:30:01 UTC
I have been looking at the code. The IPv6 resolution has been added to /sys/lib/libc/net/gethostnamadr.c, modifying the gethostbyname() function. With IPv6 enabled, it queries first for a IPv6 address and, if this fails, for an IPv4 address. The queries for IPv6 and IPv4 should be done in the DNS resolver routines, at a lower level, preserving the "search" and "domain" semantics. A candidate would be res_search()? -- *********************************************************************** Borja Marcos * Internet: borjam@we.lc.ehu.es Alangoeta, 11 1 izq * borjamar@sarenet.es 48990 - Algorta (Vizcaya) * borjam@uninet.edu SPAIN * borjam@well.com *********************************************************************** --- FreeBSD, turning PCs into workstations State Changed From-To: open->closed >>>>> On Tue, 18 Jul 2000 00:44:42 -0700 (PDT) >>>>> ume@FreeBSD.org said: ume> Synopsis: "domain" directive in /etc/resolv.conf not consistent when using IPv6 and IPv4 ume> State-Changed-From-To: open->closed ume> State-Changed-By: ume ume> State-Changed-When: Tue Jul 18 00:42:37 PDT 2000 ume> State-Changed-Why: Oops, I missed to add State-Changed-Why. Recent changes to getaddrinfo.c fixed the DNS search order. -- Hajimu UMEMOTO @ Business Solution System Development Div., Hitachi Ltd. E-Mail: ume@bisd.hitachi.co.jp ume@mahoroba.org ume@FreeBSD.org URL: http://www.imasy.org/~ume/ |