Thnx These modules suit me.
On Thu, 2002-07-04 at 22:17, Peter Scott wrote: > At 03:40 PM 7/4/02 +1000, Toby Stuart wrote: > >http://search.cpan.org/ > > > >Net::DNS::* ??? > > > >There might be something there that does what you need. > > Indeed. From http://search.cpan.org/doc/CREIN/Net-DNS-0.23/lib/Net/DNS.pm: > > mx > > # Use a default resolver -- can't get an error string this way. > use Net::DNS; > my @mx = mx("example.com"); > > > # Use your own resolver object. > use Net::DNS; > my $res = Net::DNS::Resolver->new; > my @mx = mx($res, "example.com"); > > > Returns a list of Net::DNS::RR::MX objects representing the MX records > for the specified name; the list will be sorted by preference. Returns > an empty list if the query failed or no MX records were found. > > This method does not look up A records -- it only performs MX queries. > > >-----Original Message----- > >From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]] > >Sent: Thursday, July 04, 2002 3:32 PM > >To: [EMAIL PROTECTED] > >Subject: Module for DNS to find MX Records ? > > > > > >Hello All, > > I am working on a mailing project on LINUX and would like to know > >the Mx records of hosts from a text file in a perl program > >I know I can use programs like dig but they dont provide friendly o/ps > >There must be some module written to do dns lookups :-) > >Any pointers ? > > > >Thnx > >Ram > > -- > Peter Scott > Pacific Systems Design Technologies > http://www.perldebugged.com/ > -- Ramprasad A Padmanabhan Sr Software Engineer Netcore Solns Pvt Ltd Mumbai ph - (022) 4628000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]