🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: C & system programmation

#785
From: fred smith
Date: Fri, 24 Dec 1999 00:00
23 lines
1570 bytes
Apple <gin@wanadoo.fr> wrote:
: 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 !!!

Check out:

	man gethostbyname

Fred

-- 
---- Fred Smith -- fredex@fcshome.stoneham.ma.us ----------------------------
   "For the word of God is living and active. Sharper than any double-edged 
   sword, it penetrates even to dividing soul and spirit, joints and marrow; 
              it judges the thoughts and attitudes of the heart."  
---------------------------- Hebrews 4:12 (niv) ------------------------------
Technical Details
Message-ID: <Fn8tLr.E9B@fcshome.stoneham.ma.us>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <83u0et$s12$1@wanadoo.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c696,8808f7788fbc357b
X-Google-Attributes: gid10c696,public
X-Google-Thread: fdcad,8808f7788fbc357b
X-Google-Attributes: gidfdcad,public
X-Google-Thread: 114592,8808f7788fbc357b
X-Google-Attributes: gid114592,public
From: fred smith <fredex@fcshome.stoneham.ma.us>
Subject: Re: C & system programmation
Date: 1999/12/24
Message-ID: <Fn8tLr.E9B@fcshome.stoneham.ma.us>
X-Deja-AN: 564578626
Sender: fredex@fcshome.stoneham.ma.us (fred smith)
References: <83u0et$s12$1@wanadoo.fr>
Organization: None!
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (Linux/2.0.36 (i586))
Newsgroups: alt.comp.lang.learn.c-c++,comp.os.linux.development.apps,fr.comp.lang.c++