facing problem with gethostbyname2

sonal kamra Sonal.Kamra at wipro.com
Thu Jul 28 11:32:53 UTC 2005


Hi, 
 
I am using Bind 9.2.3 resolver library, I am facing some problem with
gethostbyname2(), i am not able to get IPv4-mapped-IPv6 address.
Where  /etc/resolv.conf look like this
================================
domain myzone.com
nameserver 10.53.1.1
options inet6
================================
gethostbyname2() is working fine when i am giving the hostname that have
ipv6 address where family parameter in gethostbyname2 is AF_INET6.
But for the hostname that is having only IPv4 address, where family
parameter in the gethostbyname2 is AF_INET, according to the man page 
it should return IPv4-mapped-IPv6 address, but gethostbyname2 is returning
IPv4 address where it should return IPv4-mapped-IPv6 address.
 
Is there any option other than inet6 in the resolv.conf that we have to set
to get IPv4-mapped- IPv6 address.
If anyone has face this issue then please tell me.
 
Thanks & Regards,
Sonal
 
 
 


Confidentiality Notice  
The information contained in this electronic 
message and any attachments to this message are
intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information.
If you are not the intended recipient, please notify 
the sender at Wipro or Mailadmin at wipro.com immediately 
and destroy all copies of this message and any attachments.



More information about the bind-users mailing list