[EMAIL PROTECTED] wrote:

>               lookup /etc/hosts for IPv6 address
>               lookup DNS for IPv6 address             <---
>               lookup /etc/hosts for IPv4 address
>               lookup DNS for IPv4 address
>       Ben dislikes the second item on the above.

What I dislike really is looking up the unqualified name in the root
domain *before* checking the qualified name for an IPv4 address.  Is
something like this possible, for unqualified names?

assume query "foo", default domain is "domain" ...

lookup "foo" in /etc/hosts for either address type
lookup "foo.domain." in DNS (AAAA)
lookup "foo.domain." in DNS (A)
lookup "foo." in DNS (AAAA)
lookup "foo." in DNS (A)

this seems the best to me, but I wouldn't know if it's a) easy, b) possible,
c) standards conforming. I'm not sure where /etc/hosts would go.

-- 
Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to