Resolve hostname by specified nameserver
by Rocku other posts by this author
Oct 20 2009 7:34AM messages near this date
view in the new Beta List Site
RE: perl error message
|
RE: Resolve hostname by specified nameserver
Hello,
I need to resolve a hostname by a specified nameserver. Currently I am
using nslookup throught backticks, but it's output differs slightly
between Windows versions and is hard to parse. I wanted to use Socket
and something like inet_ntoa(inet_aton('hostname')) but this way I have
no option to specify the nameserver to query. I am aware about Net::DNS,
but unfortunately I cannot use it because it's not standard in
ActivePerl 5.10. An ideal solution would be some WMI function, but I
cannot find any for the task. Maybe using Win32::API?
So my question is - how to query a specific nameserver about a DNS 'A'
record?
--
rocku
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Rocku
Paul Brzezinski
Chris Wagner
Rocku
Bernard Tremblay
Serguei Trouchelle
Rocku
R Pocztarski
R Pocztarski
|