On Fri, 2010-04-16 at 08:18 +0200, Per Jessen wrote:
Jeffrey L. Taylor wrote:
Quoting Per Jessen
: Jeffrey L. Taylor wrote:
While traveling, I found a motel with WiFi where Firefox and the DNS utilities, nslookup and dig, worked as expected, but wget, termtter (a CLI Twitter client), my Ruby on Rails applications, and several other programs could not resolve any domain names (getaddrinfo error, from memory). If I plugged the IP address obtained with nslookup into /etc/hosts, they worked as expected.
Could anyone enlighten me about how these programs resolve domain names differently?
Basically they don't - apart from nslookup and dig, they would use getaddrinfo() (or the equivalent) and that's it. I don't understand how firefox could work when the others failed, but it's probably worth double checking your /etc/resolv.conf
IIRC, Firefox does it's own lookup. I've forgotten how I found this out and what tipped me off. /etc/resolv.conf looks reasonable, nameserver and search lines.
And /etc/nsswitch.conf ?
Something is wrong with your resolver setup, that's where you need to look.
-- Per Jessen, Zürich (5.3°C)
how about doing an /etc/rc.d/nscd restart Something might be lingering in your cache.. At least once a year i got tricked by nscd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org