Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!nctuccca.edu.tw!cccanews!news!news.csie.nctu.edu.tw!chpi.edu.tw!samson From: samson@chpi.edu.tw (Samson Chen) Newsgroups: comp.os.386bsd.questions Subject: [Q]why gethostbyname ignore /etc/hosts Date: 2 Jan 1994 11:12:42 GMT Organization: Chung-Hua Polytechnic Institute Lines: 12 Message-ID: <2g6a7a$e04@news.csie.nctu.edu.tw> Reply-To: samson@chpi.edu.tw NNTP-Posting-Host: samson%@140.126.3.2 X-Newsreader: TIN [version 1.2 PL0] Hi, BSDers, I got a very strange problem on NetBSD (0.9). If I start resolver (/etc/resolv.conf), the gethostbyname system call will not search the hosts on /etc/hosts. Only when I disable resolver, it will do that. It will make my ntalkd malfunctioned, it always tell me [remote host cannot recognize us]. Any one has good solving hints. Thanks. -- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ samson@chpi.edu.tw, Department of Computer Science Chung-Hua Polytechnic Institute =|8-) <Fat Dragon> 300, Hsin-Chu, Taiwan ... eMail:samson@chpi.edu.tw