- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- To execute nslookup -type=mx in Perl script
Operating System - Linux
1820259
Members
2900
Online
109622
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 08:15 PM
тАО03-05-2007 08:15 PM
To execute nslookup -type=mx in Perl script
Hi,
To execute the command nslookup to find the MX record for a domain in Perl script,for eg
"nslookup -type=mx google.com"
But this should be implemented without using Net::DNS module.
The command should go something like,
----------------------------------------------
$code = Win32::OLECreateObject('Dynu.Exec',$oExec) or die "Couldn't create new oExec Object!";
print $oExec->Execute('nslookup -type=mx microsoft.com');
$oExec->Quit();
----------------------------------------------
What are the modules needed for the above Perl lines apart from
Use OLE;
Please help me in this regards,
Arun
To execute the command nslookup to find the MX record for a domain in Perl script,for eg
"nslookup -type=mx google.com"
But this should be implemented without using Net::DNS module.
The command should go something like,
----------------------------------------------
$code = Win32::OLECreateObject('Dynu.Exec',$oExec) or die "Couldn't create new oExec Object!";
print $oExec->Execute('nslookup -type=mx microsoft.com');
$oExec->Quit();
----------------------------------------------
What are the modules needed for the above Perl lines apart from
Use OLE;
Please help me in this regards,
Arun
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 09:33 PM
тАО03-05-2007 09:33 PM
Re: To execute nslookup -type=mx in Perl script
In your first thread in this nslookup matter
you didn't mention you wanted this implemented on a Windows box.
Maybe you should better move your thread to the Microsoft forum of ITRC to find someone who has experience with Win32::OLE objects?
you didn't mention you wanted this implemented on a Windows box.
Maybe you should better move your thread to the Microsoft forum of ITRC to find someone who has experience with Win32::OLE objects?
Madness, thy name is system administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 09:45 PM
тАО03-05-2007 09:45 PM
Re: To execute nslookup -type=mx in Perl script
Hi,
Thanks for your reply.
I thought that win32 & OLE would work in Unix box,the script has to be implemented in Unix Box.
So in relation with my other thread,I would like to find the way to implement without Net::DNS module.
Thanks,
Arun
Thanks for your reply.
I thought that win32 & OLE would work in Unix box,the script has to be implemented in Unix Box.
So in relation with my other thread,I would like to find the way to implement without Net::DNS module.
Thanks,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 10:13 PM
тАО03-05-2007 10:13 PM
Re: To execute nslookup -type=mx in Perl script
I may be wrong beacause I'm not into Windows.
But as far as I thought to have known Win32::OLE is a perl API for accessing OLE applications.
I thought OLE was a technique developed an promoted by Microsoft, and inherent to their applications like Office suite programs etc.
Therefore I would assume that Win32::OLE was only installable on Windows ports of Perl like e.g. that of ActiveState.
The Win32 namespace also conveys this to me.
But as said, I don't know anything about Microssoft products.
Maybe these will help in clarifying prerequisites?
http://en.wikipedia.org/wiki/Object_Linking_and_Embedding
http://search.cpan.org/~jdb/libwin32-0.26/OLE/lib/Win32/OLE.pm
But as far as I thought to have known Win32::OLE is a perl API for accessing OLE applications.
I thought OLE was a technique developed an promoted by Microsoft, and inherent to their applications like Office suite programs etc.
Therefore I would assume that Win32::OLE was only installable on Windows ports of Perl like e.g. that of ActiveState.
The Win32 namespace also conveys this to me.
But as said, I don't know anything about Microssoft products.
Maybe these will help in clarifying prerequisites?
http://en.wikipedia.org/wiki/Object_Linking_and_Embedding
http://search.cpan.org/~jdb/libwin32-0.26/OLE/lib/Win32/OLE.pm
Madness, thy name is system administration
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP