ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved