[Dnsmasq-discuss] override public records
Paul Chambers
dnsmasq at lists.bod.org
Sat Jun 13 17:25:22 BST 2009
Jorge Bastos wrote:
>> On Sat, Jun 13, 2009 at 10:11 AM, Jorge Bastos<mysql.jorge at decimal.pt>
>> wrote:
>>
>>> Howdy,
>>>
>>> How can I override a public dns value?
>>>
>> Did you try just adding an entry in /etc/hosts ?
>>
>
> 'course not, if DNSMasq is serving machines on the LAN... that doesn't work.
> :P
>
Dnsmasq reads the /etc/hosts file on the local machine at startup, and
prepopulates its local db/cache with those entries. It's one way to
achieve what you're looking to do. Another method is to use the 'local'
or 'server' keyword in the dnsmasq config file to define a local
mapping, which allows some extra control. It's all described in the
documentation.
Both methods work just fine, I'm doing something similar myself, it's
commonplace. dnsmasq can also easily redirect entire domains to
different DNS servers, e.g. to support VPN tunnels.
You asked for help, and Richard is offering you some. Odd reaction,
under the circumstances...
-- Paul
More information about the Dnsmasq-discuss
mailing list