Skip to content

Finding out your IP address by DNS querying

July 30, 2010

A little trick to find out your outgoing IP address through a DNS query:

iarlyy@wolfman $ dig myip.opendns.com @resolver1.opendns.com +short
66.7.199.108

This is it!… Happy Linuxing!

About these ads

From → General, Linux

3 Comments
  1. Manuel permalink

    Why to complicate?

    Simple do:
    $ ifconfig

    and obtain the same result.

    Cumprs
    Manuel

    • iarlyy permalink

      if you are behind a Firewall ifconfig wouldn’t answer your real outgoing IP address but your pc IP address

  2. mike permalink

    Great tip. Went straight into my .aliases

    Thanks

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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: