Fwd: gethostbyname Resolver Error

Andrei Popov ceesaxp at gmail.com
Fri Feb 23 11:35:23 UTC 2007


Hi,

I am running BusyBox on WRT54G as part of OpenWRT firmware.  WRT
serves a local WLAN, being connected via a leased line to ISP, and
then through a PPTP VPN to Internet.  ISP runs several VPN gateway
servers, all are replying to a common host name -- let's call it
vpn.corbina.net but with different IP addresses -- 195.14.38.x.

Up until recently there were fewer than 20 servers in the VPN pool,
but a few days ago ISP has added several new servers to cope with the
load, pushing the total number of them to 23.  From that moment
uClib's gethostbyname stopped resolving names to IP addresses and
returns an unkown resolver error:

$ ping vpn.corbina.net
ping: vpn.corbina.net: Resolver error

$ nslookup vpn.corbina.net
Server:         localhost
Address:        127.0.0.1

nslookup: vpn.corbina.net: Resolver error

It would seem that because of a large number of entries returned by
the DNS server, gethostbyname fails to provide an name to IP mapping.
Are there any known work-arounds to this?


Thanks,
Andrei



More information about the uClibc mailing list