If you are going to flip someone off with a RTFM, please make sure you answer the question succinctly. tomazos is really looking for gethostbyname. Net::DNS works, but is massively overpowered for such a simple operation.
I'm also not suprised he couldn't find it - the perldocs say to read the C manpages, and the C manpages crap on about returning bizarre structures and converting network byte orders without mentioning "Hands you a ip address from a hostname". It's the sort of thing where if you didn't already know, you'd have to ask - which he did.
____________________
Jeremy
I didn't believe in evil until I dated it. | [reply] |