in reply to Dns lookups
Any reason not to use gethostbyname() instead?
perl -MSocket -e '@h=gethostbyname($_) and print "$_\n".inet_ntoa($h[4])."\n\n" for @ARGV;' perlmonks.org bing.com example.comStill no good for IPv6, obviously, but a bit less wheel reinvention.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dns lookups
by perlaintdead (Scribe) on Dec 11, 2013 at 23:17 UTC | |
by perlaintdead (Scribe) on Dec 11, 2013 at 23:30 UTC | |
|
Re^2: Dns lookups
by perlaintdead (Scribe) on Dec 12, 2013 at 00:47 UTC | |
by hippo (Archbishop) on Dec 12, 2013 at 09:44 UTC | |
by perlaintdead (Scribe) on Dec 12, 2013 at 10:46 UTC |