Perl: the Markov chain saw | |
PerlMonks |
Re: query dns by hostnameby lithron (Chaplain) |
on Mar 27, 2014 at 00:20 UTC ( [id://1079871]=note: print w/replies, xml ) | Need Help?? |
I think you are misunderstanding what gethostbyname() does. gethostbyname allows you to resolve a DNS (or /etc/hosts entry) to an IP address. It does not allow you to do wildcard searches on a partial domain name.
In Section
Seekers of Perl Wisdom
|
|