LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-05-2003, 02:42 PM   #1
jpbarto
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 house.net for the dig command).

However if lets say 'dig +short acomp.house.net' returns 192.168.1.12

and I then execute 'host 192.168.1.12' 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
bentz
Member
 
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 1.168.192.in-addr.arpa 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
jpbarto
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.

jpbarto
 
  


Reply


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 13 07-31-2014 03:57 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, host, nslookup? gsibble Arch 1 02-03-2004 01:02 PM
dig lo results in wrong host odious1 Linux - Networking 4 09-21-2003 01:53 PM


All times are GMT -5. The time now is 01:13 AM.

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