🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #780

C & system programmation

#780
From: Apple
Date: Thu, 23 Dec 1999 00:00
18 lines
1428 bytes
I 'am unser Linux  and I have a big problem in C

I want do a thing very simple,
With a computer name, I want resolve his IP address without scanning
/etc/host because,
host name can be in yellow page (nis,nis+,dns...)

How can I do : To resume , I want to do like hostname -i but for any name.
I know to resolve IP with a name but not reverse !!!

Please help me

Thanks
--
----------------------------------------------------------------------------
------------------------------
gin@wanadoo.fr
Like Sybase Central LSC http://perso.wanadoo.fr/laserquest/linux
Technical Details
Message-ID: <83u0et$s12$1@wanadoo.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c696,8808f7788fbc357b,start
X-Google-Attributes: gid10c696,public
X-Google-Thread: fdcad,8808f7788fbc357b,start
X-Google-Attributes: gidfdcad,public
X-Google-Thread: 114592,8808f7788fbc357b,start
X-Google-Attributes: gid114592,public
From: "Apple" <gin@wanadoo.fr>
Subject: C & system programmation
Date: 1999/12/23
Message-ID: <83u0et$s12$1@wanadoo.fr>
X-Deja-AN: 564303102
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@wanadoo.fr
X-Trace: wanadoo.fr 945980701 28706 193.250.83.79 (23 Dec 1999 20:25:01 GMT)
Organization: Wanadoo, l'internet avec France Telecom
X-MSMail-Priority: Normal
NNTP-Posting-Date: 23 Dec 1999 20:25:01 GMT
Newsgroups: alt.comp.lang.learn.c-c++,comp.os.linux.development.apps,fr.comp.lang.c++