Re: problem with gethostbyaddr with intranet addresses on MAC

2008-01-28 Thread Sion Arrowsmith
shailesh <[EMAIL PROTECTED]> wrote: >Python 2.4.4 (#1, Oct 18 2006, 10:34:39) >[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin >Type "help", "copyright", "credits" or "license" for more information. from socket import * x = gethostbyname('google.com') x >'64.233.167.99'

Re: problem with gethostbyaddr with intranet addresses on MAC

2008-01-25 Thread Vladimir Rusinov
On 1/25/08, shailesh <[EMAIL PROTECTED]> wrote: > > apples-computer:~ apple$ ping 192.168.4.123 > PING 192.168.4.123 (192.168.4.123): 56 data bytes > 64 bytes from 192.168.4.123: icmp_seq=0 ttl=64 time=0.328 ms > 64 bytes from 192.168.4.123: icmp_seq=1 ttl=64 time=0.236 ms > 64 bytes from 192.168.4

problem with gethostbyaddr with intranet addresses on MAC

2008-01-25 Thread shailesh
Hi, I am facing a peculiar problem. socket.gethostbyaddr is not working fine on my MAC for ip addresses on the LAN. The LAN happens to consist of linux and windows machines and this is the only one MAC on the LAN. Please see the example below. I am getting error: socket.herror: (1, 'Unknown host