how to route FQDN to an alt ip?
Derek Broughton
derek at pointerstop.ca
Thu Aug 13 13:46:01 UTC 2009
Fred Roller wrote:
> On Wed, 2009-08-12 at 23:59 -0700, Evuraan wrote:
>> > Can you not just put:
>> > blah.example.com E.F.G.H
>> > in /etc/hosts?
>> >
>>
>> But I still wonder how to do this from the ip route realm of things,
>> rather than a forced lookup from within dnsmasq.
>
> I can't speak on dnsmasq, but /etc/hosts, as Chris mentioned, is where
> you need to put the association. /etc/hosts is Linux's first check in
> resolving names and unless you have a particular need, i.e. more than
> one machine needs the information, then why add extra software?
It's a long time since I used dnsmasq, but I thought even with dnsmasq, the
simplest solution is to use /etc/hosts, as dnsmasq reads it (the reasoning
being that, though this is redundant on the dnsmasq server, other machines
are probably using it as their DNS server).
I've never figured out a way to reroute IP addresses that doesn't use DNS.
--
derek
More information about the ubuntu-users
mailing list