Why can't u use Net::DNS? It's pure Perl so there shouldn't be any trouble using it anywhere on Windows. It doesn't have to be installed globally to use it. U can copy it into ur own directory and do a use lib in ur script to load it. Even in the worst case scenario u can copy all of the Net::DNS code directly in ur own script.
At 04:34 PM 10/20/2009 +0200, rocku wrote: >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? -- REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=-- "...ne cede malis" 00000100 _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs