in reply to DNS Lookup

Net::DNS (along with many other modules) was easily found using the search function at www.cpan.org

I would highly recommend these nodes:
  • on asking for help
  • Before you post...
  • How to ReadTheFineManual

  • Update: jepri's right my answer was a little quick gethostbyname is a better solution.

    grep
    grep> cd /pub
    grep> more beer

    Replies are listed 'Best First'.
    Re:(Jepri) DNS Lookup
    by jepri (Parson) on Mar 12, 2002 at 05:34 UTC
      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.