Any way to bypass nameserver call in IPV6 ???
From: T.R.Bennett (bennett.tony_at_cnf.com)
Date: 08/27/04
- Next message: mr kay: "capture rpc messages"
- Previous message: connect: "Re: DEFUNCT Processes"
- Next in thread: Dale Talcott: "Re: Any way to bypass nameserver call in IPV6 ???"
- Reply: Dale Talcott: "Re: Any way to bypass nameserver call in IPV6 ???"
- Reply: Richard D. Latham: "Re: Any way to bypass nameserver call in IPV6 ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Aug 2004 18:02:17 -0700
Apache and several other open source projects have converted
their code from using gethostbyname() to using getaddrinfo().
They call getaddrinfo with a hints.ai_family = AF_UNSPEC,
which means "get me both IPV4 as well as IPV6" addresses.
If I were using gethostbyname(), then I could prevent going
to the nameserver if I have the host in the /etc/hosts file
and had /etc/netsvc.conf contain "hosts= local,bind".
How do I create the same behaviour for IPV6 addresses ?
Additionally, I noted that even though I specify a FQDN in
the getaddrinfo() call, it tries both that name as well as
a name created by appending my domain name. For example:
- I specify XXX.YYY.COM
- getaddrinfo does IPV6 queries for:
XXX.YYY.COM
XXX.YYY.COM.YYY.COM
Is this correct behaviour???
Thanks,
-tony
- Next message: mr kay: "capture rpc messages"
- Previous message: connect: "Re: DEFUNCT Processes"
- Next in thread: Dale Talcott: "Re: Any way to bypass nameserver call in IPV6 ???"
- Reply: Dale Talcott: "Re: Any way to bypass nameserver call in IPV6 ???"
- Reply: Richard D. Latham: "Re: Any way to bypass nameserver call in IPV6 ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|