URG:Same Hostname for IPV4 & IPV6 address in /etc/hosts entry not working

Vinay L

Registered
Hi,

My /etc/hosts entry is as follows:

172.18.25.33 dns.search.com blrtestdev
::1 dns.search.com blrtestdev

Now I have developed an application which uses getaddrinfo to fetch the IP address using the hostname 'blrtestdev'.
On MAC 10.6 it is working fine. But on MAC 10.8 it is not working. Is adding entry on MAC 10.8 in /etc/hosts is different? Can't the same hostname(blrtestdev) be used for both IPV4 & IPV6 address? If I remove the the entry of fully-qualified domain name(dns.search.com) it works fine.

It would be helpful if the above doubts are clarified.

Thanks & Regards,
Vinay
 
Yout going to have to update your application. The hosts file was updated between 10.6 to 10.8. You going to have to figure out the new BSD core when it comes to the /etc/core.
 
Back
Top