Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-05-2003, 02:42 PM   #1
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
host vs dig

got a little network of 5 machines set up here at home (not connected to the internet).

if sitting on a machine I can ping and 'dig' any machine name I like (so long as I append for the dig command).

However if lets say 'dig +short' returns

and I then execute 'host' why does host come back with "timed out; no servers could be reached".

what's the deal here why can't I do reverse lookups?
Old 08-05-2003, 03:03 PM   #2
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
'Timed out; no servers could be reached' is a message from your system regarding connecting to your DNS server. 'host' is trying to connect to your DNS server (specified in /etc/resolv.conf) and look for a DNS zone containing a '12' PTR record in which it's not finding because DNS is apparently broken on your system. You cannot perform reverse lookups with 'host' against /etc/hosts, because 'host' is meant to be a DNS tool.

I imagine that forward lookups are working fine via /etc/hosts (which is controlled via /etc/nsswitch.conf; 'hosts: files dns').

Last edited by bentz; 08-05-2003 at 03:05 PM.
Old 08-06-2003, 10:17 AM   #3
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Original Poster
Rep: Reputation: 45
thank you for the clarification and thoughts. I'll look into it and let you know what I find out.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nslookup, host, dig not resolving entries in /etc/hosts MensaWater Linux - Networking 21 09-30-2016 07:43 AM
Dig, host, nslookup? gsibble Arch 2 01-25-2015 03:36 AM
(nslookup) vs (dig and host) emailssent Linux - Networking 7 10-06-2004 08:38 AM
Where can I get dig/host from? MadCactus Linux - Networking 2 07-03-2004 09:56 AM
dig lo results in wrong host odious1 Linux - Networking 4 09-21-2003 01:53 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration