Jump to content


10 Linux DIG Command Examples for DNS Lookup


  • Please log in to reply
7 replies to this topic

#1 ONLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,435 posts

Posted 29 February 2012 - 12:16 PM

QUOTE
Dig stands for domain information groper.

Using dig command you can query DNS name servers for your DNS lookup related tasks. This article explains 10 examples on how to use dig command.

1. Simple dig Command Usage (Understand dig Output)

When you pass a domain name to the dig command, by default it displays the A record (the ip-address of the site that is queried) as shown below.

In this example, it displays the A record of redhat.com in the “ANSWER SECTION” of the dig command output..........


http://www.thegeekstuff.com/2012/02/dig-command-examples/#
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#2 ONLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum MVP
  • 18,526 posts

Posted 29 February 2012 - 01:23 PM

Groping. Pretty cool! smile.gif

Posted Image


#3 OFFLINE   Temmu

Temmu

    The Assimilator

  • Forum MVP
  • 11,670 posts

Posted 29 February 2012 - 05:35 PM

nice tool.
ms windows has nslookup, of course.
Posted Image

#4 ONLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum MVP
  • 18,526 posts

Posted 29 February 2012 - 09:20 PM



Magic Folder? Is that something sold by Ronco? Makes a great Father's Day gift. Act now and get a second one free... just pay S/H. wink.gif

Posted Image


#5 ONLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,435 posts

Posted 29 February 2012 - 11:42 PM

QUOTE (Temmu @ Feb 29 2012, 03:35 PM) <{POST_SNAPBACK}>
nice tool.
ms windows has nslookup, of course.

And so does Linux wink.gif
CODE
╔═ comhack @Cerberus 09:42 PM
╚═══ ~-> nslookup localhost
Server:        192.168.1.1
Address:    192.168.1.1#53

Name:    localhost
Address: 127.0.0.1

Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#6 OFFLINE   Temmu

Temmu

    The Assimilator

  • Forum MVP
  • 11,670 posts

Posted 01 March 2012 - 02:22 AM

well, how bout that?

betcha windows got it from linux... biggrin.gif
Posted Image

#7 OFFLINE   crp

crp

    Board Bigwig

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,513 posts

Posted 01 March 2012 - 03:38 AM

QUOTE (Temmu @ Feb 29 2012, 11:22 PM) <{POST_SNAPBACK}>
well, how bout that?

betcha windows got it from linux... biggrin.gif
actually, Unix. Most of the msWindows ip plumbing came from Unix. iirc, somehow Sun ended up with the patent rights and all these things were included in the Sun-Microsoft crosspatent and cash settlements (aside from the java mess that happened a few years later).
Of all tyrannies, a tyranny sincerely exercised for the good of its victims may be the most oppressive. It would be better to live under robber barons than under omnipotent moral busybodies. The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end for they do so with the approval of their own conscience. ~C. S. Lewis

#8 ONLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 15,435 posts

Posted 01 March 2012 - 10:24 AM

QUOTE (crp @ Mar 1 2012, 01:38 AM) <{POST_SNAPBACK}>
actually, Unix. Most of the msWindows ip plumbing came from Unix. iirc, somehow Sun ended up with the patent rights and all these things were included in the Sun-Microsoft crosspatent and cash settlements (aside from the java mess that happened a few years later).

thumbup.gif
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users