Bulk domain checker / ip resolve

Discussion in 'Site & Server Administration' started by MarkusJ_NZ, Jan 17, 2008.

  1. #1
    Hi, I have a number of websites and I need to be able to check what IP address they are resolving to given the domain name.

    Any ideas?
    Thanks
    Mark
     
    MarkusJ_NZ, Jan 17, 2008 IP
  2. boltok

    boltok Active Member

    Messages:
    257
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #2
    If you have access to a shell and dig is installed, you could do it through a while loop:

    for website in www.example.org 123.example.com abc.example.net;do
    echo -n "$website: ";
    dig +short $website;
    done
    Code (markup):
     
    boltok, Jan 18, 2008 IP