(E-Mail Removed) (Aaron Manning) writes:
]Greetings all,
] I'm using kernel 2.4.19-uc1 and having difficulty with the
]gethostbyname() function to resolve a hostname. What I'm seeing
](through a packet sniffer) is that when calling the function
]gethostbyname(<hostname>) I'm seeing ARP REQUESTS to an invalid DNS
]server ip (I programmed it this way) and it's taking in excess of 1
Well, perhaps the solution is not to program it in this way. Why are yousending
your dns requests off on a wild goose chase?
]minute for the ARP REQUESTS to finally finish (give up on ARP), at
]which point the gethostbyname() function will finally return (with the
gethostbyname will look in /etc/hosts first so if this is an often used address,
put it into /etc/hosts.
]proper error code). This seems to me an extremely long time to try to
]validate the IP. I have a 30 second software task watchdog which will
]always timeout, and my system will reset because of this long delay.
] Is this the proper functionality for retrying ARP REQUESTS and if
]not, has there been a fix or does anyone have any ideas of how else to
]proceed?
]Thank you in advance,
]Aaron Manning