tomazos has asked for the wisdom of the Perl Monks concerning the following question:
The original name could already be an IP number in which case I don't want to change it.
If the lookup fails I want to get an empty string back.
I have been handed some ugly C code to do this, but it occurs to me that someone must have already done this in Perl.
Anyone know of a builtin/module that does this?
Cheers in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DNS Lookup
by tachyon (Chancellor) on Mar 12, 2002 at 08:04 UTC | |
|
Re: DNS Lookup
by jepri (Parson) on Mar 12, 2002 at 09:23 UTC | |
|
Re: DNS Lookup
by grep (Monsignor) on Mar 12, 2002 at 04:34 UTC | |
by jepri (Parson) on Mar 12, 2002 at 05:34 UTC |