Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple DNS question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
offline
n00b
n00b


Joined: 07 Jul 2002
Posts: 34

PostPosted: Fri Jul 12, 2002 3:25 am    Post subject: Simple DNS question Reply with quote

What command line tool can be used to do a DNS lookup? i thought i read that it was "dig" but that got me nowhere...
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 17463

PostPosted: Fri Jul 12, 2002 3:28 am    Post subject: Reply with quote

I thought it was nslookup, but it isn't installed on my machine.
_________________
Slowly I turned. Step by step.
Back to top
View user's profile Send private message
offline
n00b
n00b


Joined: 07 Jul 2002
Posts: 34

PostPosted: Fri Jul 12, 2002 3:33 am    Post subject: yep Reply with quote

i noticed that myself. Hence the question :)
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 17463

PostPosted: Fri Jul 12, 2002 3:42 am    Post subject: Reply with quote

emerge -s nls doesn't return anything helpful. I'm guessing it is burried
in some package. A shame emerge -S doesn't search inside packages.
_________________
Slowly I turned. Step by step.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jul 12, 2002 3:43 am    Post subject: Reply with quote

nslookup (and dig also, IIRC) are installed as part of "bind-tools".
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Scott Frappier
n00b
n00b


Joined: 08 May 2002
Posts: 57

PostPosted: Fri Jul 12, 2002 5:00 am    Post subject: You need to do an emerge Reply with quote

Quote:

What command line tool can be used to do a DNS lookup? i thought i read that it was "dig" but that got me nowhere...


Do the following:

1.) emerge bind-tools

dig, host, nslookup, and a couple other things should now be available for use.

Have fun!
Scott Frappier
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Fri Jul 12, 2002 11:24 am    Post subject: Reply with quote

nslookup seems to be fading away, at least on the newer BIND variats i allways get a deceperation meesage, and that i should use dig instead :evil:

Think i have to check if djb-dns has a nslookup tool ;)
(oh, there is even an ebuild for djbdns ! cool !)
Back to top
View user's profile Send private message
cyc
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 89

PostPosted: Fri Jul 12, 2002 11:39 am    Post subject: Reply with quote

dig is the new version included since BIND 9 i think. nslookup also gives a notice about that i think. It says you should use dig
_________________
http://www.gentoo-de.org
Gentoo userpage
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Jul 12, 2002 11:47 am    Post subject: Reply with quote

dig gives a lot more information than nslookup does -- it's rightfully supplanting nslookup as the DNS swiss army knife of choice.

BTW, the word is "deprecated" :)

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jul 12, 2002 1:41 pm    Post subject: Reply with quote

Bah, I still like nslookup more.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
offline
n00b
n00b


Joined: 07 Jul 2002
Posts: 34

PostPosted: Fri Jul 12, 2002 3:35 pm    Post subject: question from someone who doesn't speak sed Reply with quote

Is there any way to make dig return ONLY the ip address?
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Jul 12, 2002 4:00 pm    Post subject: Reply with quote

I don't believe so, but:

Code:
man dig


would probably answer your question...

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
mrchuckles
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 125
Location: Severn, MD

PostPosted: Fri Jul 12, 2002 4:50 pm    Post subject: Reply with quote

delta407 wrote:
Bah, I still like nslookup more.


Then you must not maintain any DNS servers for a living. dig is a dream compared to nslookup. I can basically view and troubleshoot an entire zone file from the command line. :)
Back to top
View user's profile Send private message
Xamot
n00b
n00b


Joined: 20 May 2002
Posts: 29

PostPosted: Fri Jul 12, 2002 4:53 pm    Post subject: Reply with quote

mglauche wrote:
nslookup seems to be fading away, at least on the newer BIND variats i allways get a deceperation meesage, and that i should use dig instead :evil:

Think i have to check if djb-dns has a nslookup tool ;)
(oh, there is even an ebuild for djbdns ! cool !)


djb-dns lookup tools: dnsip(1), dnsipq(1), dnsname(1), dnsmx(1), dnstxt(1), dnsqr(1), dnsq(1), dnstrace(1)

dnsip takes a fqdn and retruns just an IP.


Last edited by Xamot on Fri Jul 12, 2002 5:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Fri Jul 12, 2002 4:58 pm    Post subject: Re: question from someone who doesn't speak sed Reply with quote

offline wrote:
Is there any way to make dig return ONLY the ip address?


What do you mean? Only A records? Not at all. Try:
Code:
dig MX gentoo.org
dig NS gentoo.org

_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Jul 12, 2002 5:10 pm    Post subject: Reply with quote

Xamot wrote:
dnsip takes a fqdn and retruns just an IP.


You mean, like ping? :lol:

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Matt2000
n00b
n00b


Joined: 11 Jul 2002
Posts: 7
Location: Hinterbrühl, Austria

PostPosted: Fri Jul 12, 2002 6:09 pm    Post subject: Re: question from someone who doesn't speak sed Reply with quote

Nitro wrote:
offline wrote:
Is there any way to make dig return ONLY the ip address?


What do you mean? Only A records? Not at all. Try:
Code:
dig MX gentoo.org
dig NS gentoo.org


I think
Code:
host www.gentoo.org


is what he means =)[/code]
_________________
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum