Dave Howorth wrote:
Per Jessen wrote:
I've just now discovered that the perl module/class Net::DNS::Resolver doesn't consult /etc/hosts when doing lookups, which is a problem - does anyone know of an alternative module for doing DNS lookups in perl?
Dunno whether it does what you want, but POE::Component::Client::DNS says it looks at /etc/hosts
Yeah, I think I did spot that whilst googling. It doesn't quite fit the spec though - I need a drop-in replacement for Net::DNS::Resolver. Or as close as it gets. I really don't get why people have to reinvent the wheel over and over again - why doesn't Net::DNS::Resolver just interface with e.g. getaddrinfo() thereby reducing amount code and improving compatibility, in particular looking up /etc/hosts .... aarrrg [sounds of hair leaving head]. Dave, thanks for the suggestion nonetheless. /Per -- Per Jessen, Zürich (23.3°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org