home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- From: loz@holmes.demon.co.uk (Laurence Culhane)
- Path: sparky!uunet!pipex!demon!holmes.demon.co.uk!loz
- Subject: HELPFUL TO SOME
- Keywords: hosts, tcpip, hostbyname, resolve
- Organization: Disorganised linuxer
- Date: Sun, 3 Jan 1993 00:39:11 +0000
- Message-ID: <1993Jan3.003911.1954@holmes.demon.co.uk>
- Sender: usenet@demon.co.uk
- Lines: 36
-
- Just in case this is useful to some (I've mailed some people already).
- If you (like me) haven't used the net code from libc until now (4.2),
- and are suffering from problems, this appears to be a tip.
-
- I upgraded to the latest gcc 2.3.3 and lib 4.2 no problems. But a number
- of people using old SLS releases said their net access failed, essentially
- saying the name couldn't be resolved/found...etc. I have never seen SLS
- but the following helped some people.
-
- If you use networking code under the latest 4.2 you may need the file
- /usr/etc/inet/host.conf. I don't know where docs are, but from a *QUICK*
- look at the source for gethostbyname etc etc it will tell your net code
- what to do when trying to resolve a name. Mine looks like this
-
- order hosts, bind
-
- This means it will look for IP hosts in /usr/etc/inet/hosts before it tries
- anything else.
-
- This may only be of interest to those with pre-alpha SLIP code. But others
- have mailed me.
-
- Hope this helps someone
-
- BE AWARE I LOOKED AT THE SOURCE. TRIED THIS. WORKED FOR ME.
- It may not help YOUR problem. If not...look at the SOURCE yourself
-
- FOR GODS SAKE....if I see a followup to this message in c.o.l that isn't
- a summary I'll kill you. Reply's should be via mail unless of wide interest.
-
-
-
- --
- Laurence Culhane
- Internet: loz@holmes.demon.co.uk
- Voice: +44 604 230262
-