Coder Social home page Coder Social logo

tld_checker's Introduction

TLD checker

Check domain name for availability on every Top-Level-Domain.

asciicast

green means domain available ๐Ÿ‘
red means domain not available ๐Ÿ‘Ž

This downloads a list of TLDs from IANA, so it should always be up to date.

Note: A domain will be reported as available when your (specified) DNS server states that the domain does not exist (NXDOMAIN). A domain will also be reported as not available when the DNS server times out.

Usage

./tld_checker.sh <domain> [DNS server]

Examples

Check domain availability:

./tld_checker.sh doge

Write only available domains to file:

./tld_checker.sh doge | tee available.txt

tld_checker's People

Contributors

jomo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tld_checker's Issues

Not working anymore

Hi, thanks for sharing the script. Unfortunately, it's not working, tried on Ubuntu 17.10 and Debian 9. Seem's it's something in this part:

workers=32
for i in $(seq $((workers-1)) 0); do
  for tld in $(echo "$tlds" | awk "(NR+$i) % $workers == 0"); do
    check_tld "${1}.${tld}"
  done &
done

I replaced this function with the one in the previous commit and it worked without color in output and there's a strange suffix ^[(B^[[m after every line. I'm trying to figure out why, but I don't know much of bash.

Changing setf to setaf fixed the color issue for me.

function check_tld {
  if [ -z "$(dig +short SOA "$1" $dns)" ]; then
    echo "$(tput setf 2)${1}$(tput sgr0)"
  else
    echo "$(tput setf 4)${1}$(tput sgr0)" >&2
  fi
}

1-char and 2-char

Hey,

Nice tool, however, it will report a domain available eventhough the NIC has a rule of, eg, 3 characters as minimum. Does IANA have a similar list or info about which TLDs will block registration of 1-char and 2-char domain names? If so, it would be cool to have it built into this tool.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.