#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Reverse DNS Lookup - several servers


    Hi

    I was wondering if anyone can help me, I have written a script that performs a reverse DNS lookup. I'm getting the correct results, however I need to check several servers. We split the IP ranges across servers.

    I'm using the commands gethostbyaddr and gethostbyname in the script file.

    Can these be formatted to point to a specific server?

    Hope someone can point me in the right direction.

    Thanks

    Sarah
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2007
    Posts
    765
    Rep Power
    928
    gethostbyaddr & gethostbyname use your system's DNS configuration.

    Using Net::DNS, you can explicitly specify which server(s) to query.
    sub{*{$::{$_}}{CODE}==$_[0]&& print for(%:: )}->(\&Meh);

IMN logo majestic logo threadwatch logo seochat tools logo