Networking Forums

Networking Forums > Computer Networking > Linux Networking > source code for linux host command

Reply
Thread Tools Display Modes

source code for linux host command

 
 
kenkahn
Guest
Posts: n/a

 
      02-21-2006, 06:58 PM
Where can I find the soure for the Linux 'host' command. I tried
ftp.uu.net without luck. I'm trying to determine how it translates an
IP address (aa.bb.cc.dd) to a real host name. I've tried gethostbyaddr
without luck (returns rc=1 which is EPERM).

 
Reply With Quote
 
 
 
 
Juha Laiho
Guest
Posts: n/a

 
      02-21-2006, 07:55 PM
"kenkahn" <(E-Mail Removed)> said:
>Where can I find the soure for the Linux 'host' command. I tried
>ftp.uu.net without luck. I'm trying to determine how it translates an
>IP address (aa.bb.cc.dd) to a real host name. I've tried gethostbyaddr
>without luck (returns rc=1 which is EPERM).


On my system (SUSE) it appears to be part of bind-utils package
(found this out with "rpm -qf /usr/bin/host"). "rpm -qi bind-utils"
tells among other things that the original software can be found
from http://isc.org/sw/bind/ .

(and of course, by getting the corresponding src.rpm package from some
SUSE mirror, I'd get the source with any patches specific to the SUSE
distribution).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
kenkahn
Guest
Posts: n/a

 
      02-21-2006, 08:22 PM
Exactly what I was looking for.. thanks...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re:wimax source code in c shab Wireless Internet 0 12-27-2007 09:30 AM
ip utility source code ?? rex Linux Networking 1 12-19-2007 04:18 PM
linux command to issue a join for a host participating in multicast grroup jeniffer Linux Networking 2 08-24-2006 03:17 PM
Re: TCP/IP Stack source code venus Linux Networking 0 12-24-2004 04:59 AM
netstat source code Soohyun Cho Linux Networking 2 05-22-2004 02:07 PM



1 2 3 4 5 6 7 8 9 10 11