[VoIP] Need Assistance

Russ Price kxt at fubegra.net
Wed Sep 5 20:35:49 CDT 2007


Greg Blakely wrote:
> What I'd like to have you do is log in, and enter your connection
> information, if you know it.  Let's see how many ways we can break it.
>  
> For those comfortable with modifying your /etc/resolv.conf file, the
> test server is on 76.164.8.68.

Here's a Perl script that will do an NAPTR lookup on that server without 
modifying your /etc/resolv.conf file.

<http://cnet.fubegra.net/downloads/naptr.pl>

You will need Perl installed (that's almost a given), and also the Perl 
Net::DNS module.  For CentOS systems, a prepackaged perl-Net-DNS.rpm is 
available from rpmforge.net; if you have the rpmforge repository enabled 
in /etc/yum.repos.d it's just a matter of "yum install perl-Net-DNS" to 
add it, otherwise you can download it from rpmforge.net and then install 
it manually (rpm -i perl-Net-DNS.rpm).

Direct download links for perl-Net-DNS.rpm for CentOS systems:
CentOS 3:
<http://apt.sw.be/redhat/el3/en/i386/RPMS.dag/perl-Net-DNS-0.61-1.el4.rf.i386.rpm>
CentOS 4:
<http://apt.sw.be/redhat/el4/en/i386/RPMS.dag/perl-Net-DNS-0.61-1.el4.rf.i386.rpm>
CentOS 5:
<http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/perl-Net-DNS-0.61-1.el4.rf.i386.rpm>

Alternatively, you could install Net::DNS via CPAN, but that's more 
work, and beyond the scope of this note.

The script itself should go into a directory in your PATH environment 
variable (such as /usr/local/bin), and you would run it with the the 
following command (substitute the number you want to look up):

naptr.pl 14427877

It will then print a "not found" message if it couldn't find the 
appropriate NAPTR record, or else it will print the record it finds.

	Russ


More information about the VoIP mailing list