Redirect of domain name on OS X,
Brad Knowles
brad at stop.mail-abuse.org
Tue Aug 23 21:00:48 UTC 2005
At 3:14 PM -0500 2005-08-23, /dev/rob0 wrote:
> # echo 192.168.0.3 www.domain.com >> /etc/hosts
>
> This might not work depending on the settings of your resolver
> libraries, but it's fairly standard across Unix-like platforms so it
> should work.
Unfortunately, MacOS X is pretty weird when it comes to the
networking stuff, so this is not necessarily a valid assumption.
However, it's almost trivial to set up a caching recursive
resolver that thinks it's authoritative for www.example.com, and
directs that URL to wherever you want. IMO, this is a better
solution than trying to use /etc/hosts, which is usually only
consulted during boot by most modern Unixes.
--
Brad Knowles, <brad at stop.mail-abuse.org>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
SAGE member since 1995. See <http://www.sage.org/> for more info.
More information about the bind-users
mailing list