Date: Sun, 28 Oct 2001 11:37:52 -0500 (EST) From: Philip Mak <pmak@aaanime.net> To: David Powers <dnpowers@swbell.net> Cc: <freebsd-questions@freebsd.org> Subject: RE: /etc/hosts doesn't work? Message-ID: <Pine.LNX.4.30.0110281137370.19082-100000@sg1.indexthis.net> In-Reply-To: <000301c15fcc$c267bc70$0401a8c0@daveabit>
next in thread | previous in thread | raw e-mail | index | archive | help
server1# cat /etc/host.conf # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis If I understand that correctly, it means /etc/hosts should take precendence? On Sun, 28 Oct 2001, David Powers wrote: > How is /etc/host.conf configured on the box? > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Philip Mak > Sent: Sunday, October 28, 2001 10:07 AM > To: freebsd-questions@freebsd.org > Subject: /etc/hosts doesn't work? > > > %cat /etc/resolv.conf > domain buildreferrals.com > nameserver 127.0.0.1 > %cat /etc/hosts > 127.0.0.1 localhost localhost.localdomain > 65.119.108.130 db db.buildreferrals.com > %host db > db.buildreferrals.com has address 66.33.85.240 > > What's happening above? I'm trying to make it so that the host "db" (or > db.buildreferrals.com) points to 65.119.108.130 (as specified in > /etc/hosts) when I look it up from the machine. But when I actually look > up that host, it gives a different address. > > (The DNS will eventually point 'db' to the correct host, but I need it to > work in /etc/hosts for efficiency reasons.) > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.30.0110281137370.19082-100000>
