[Dnsmasq-discuss] override public records
mysql.jorge at decimal.pt
Sat Jun 13 18:11:57 BST 2009
> 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
> 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...
I'm sorry, I should done it I know, I never thought that was it!
Yap it works, when dnsmasq overrides from /etc/hosts, it should attrib some
TTL to the it, it stays with zero TTL.
Just to avoid this:
Peixe:~# host -v -t a mail.domain.pt
Query about mail.domain.pt for record types A
Trying mail.domain.pt ...
Query done, 1 answer, authoritative status: no error
mail.decimal.pt 0 IN A 192.168.1.222
!!! mail.domain.pt A record has zero ttl
More information about the Dnsmasq-discuss