hello Monks, can someone help me query dns for a part of a hostname and return a list of hosts that match into an array? i can query using socket but it seems to only return the subdomain
#!/usr/bin/perl use Socket; use IO::Socket; use warnings; sub getWin { @win = gethostbyname("win") or die $!; print "@win\n"; } &getWin;
this is not retuning a list of hosts names win01.xx.com does anyone see the issue? also net::dns does not seem to be able to return a list of hostnames, is this true? thanks jose.
In reply to query dns by hostname by jose_m
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |