Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2001 11:06:50 -0500 (EST)
From:      Philip Mak <pmak@aaanime.net>
To:        <freebsd-questions@freebsd.org>
Subject:   /etc/hosts doesn't work?
Message-ID:  <Pine.LNX.4.30.0110281104590.19082-100000@sg1.indexthis.net>

next in thread | raw e-mail | index | archive | help
%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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.30.0110281104590.19082-100000>