LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-09-2003, 06:28 AM   #1
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Rep: Reputation: 30
Can "host" perform reverse DNS'ing?


I'm exploring some Linux networking tools, and came across "host". I've used it to resolve IP addresses (forward DNSing).Can I use it to perform reverse DNSing? (I have no dns servers at home - I just want to use "host" as a tool to DNS lookup IP addresses). This is what i get:

root@tiger:~$ host <some ip address>
<some ip address> does not exist, try again
 
Old 11-09-2003, 06:41 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I have also noticed that host doesn't always work for reverse lookups. Like this one:
Code:
hw@baron:~$ host www.google.com
www.google.com is an alias for www.google.akadns.net.
www.google.akadns.net has address 216.239.59.99
hw@baron:~$ host 216.239.59.99
Host 99.59.239.216.in-addr.arpa not found: 3(NXDOMAIN)
...but it works flawlessy for others. Feed www.yahoo.com to it and it will return a set of hosts, pick one of those hosts and it will resolve to the real name:
Code:
hw@baron:~$ host www.yahoo.com
www.yahoo.com is an alias for www.yahoo.akadns.net.
www.yahoo.akadns.net has address 216.109.118.78
www.yahoo.akadns.net has address 216.109.118.65
www.yahoo.akadns.net has address 216.109.118.67
www.yahoo.akadns.net has address 216.109.118.68
www.yahoo.akadns.net has address 216.109.118.69
www.yahoo.akadns.net has address 216.109.118.70
www.yahoo.akadns.net has address 216.109.118.73
www.yahoo.akadns.net has address 216.109.118.76
hw@baron:~$ host  216.109.118.70
70.118.109.216.in-addr.arpa domain name pointer p7.www.dcn.yahoo.com.
Very weird. I would also like some info on what's really going on.

Håkan
 
  


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
normal user want to perform "init 6" by using " sudo acbenny Linux - General 3 08-08-2004 07:41 AM
Couldn't display "SMB:///" , No host "(Null)" could been Found?????? munkey Linux - Newbie 3 05-03-2004 04:30 PM
Couldn't display "SMB:///" , No host "(Null)" could been Found?????? help munkey Fedora 6 04-30-2004 06:04 PM
FTP Error, Help needed. "Must perform authentication before identifying USER" acalvin Linux - Software 0 07-27-2003 01:41 PM
"host" ok, but "ping" can't find ip address hardigunawan Linux - Networking 2 05-16-2002 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration