Home > Web Development > Quick domain name lookup?

Quick domain name lookup?

Until further notice, this is the fastest and simpler way to find free domain names…

dig domain_name +short

Just type it in your linux/unix/os x console or exec from your script.

If this returns an IP address, then it’s taken.

If it comes out empty, then it’s most likely available.

Advertisement
  1. 2010/03/29 at 15:45 | #1

    i usually do it with “whois domain.com”

    • 2010/03/29 at 19:44 | #2

      Sure, it works. But for automated requests (eg. to use in scripts) that has 2 problems.
      1. It provides inconsistent results across different .TLDs
      2. It’s also more difficult to parse because of the longer text output

      So that’s why dig with +short it’s simpler. IP or empty. That’s it.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.