[Dnsmasq-discuss] DNS to respond to all requests
Thu, 23 Dec 2004 20:45:53 +0000
Peter Willis wrote:
> Simon Kelley wrote:
>> Harry Newman wrote:
>>> Thanks for the info this is working just great for the A record queries.
>>> Is there a way to do the same for MX queries.
>> No, it's possible to automatically generate MX records for any name in
>> /etc/hosts or in a DHCP lease, but it's not possible to generate MX
>> records for all MX records.
> well, would this work?
> echo "address=/#/somehost" >> /etc/dnsmasq.conf
> echo "22.214.171.124 somehost" >> /etc/hosts
> and then enable the thing that generates MX records for entries in
> so an MX record is automatically created for "somehost", and all DNS
> queries are changed to "somehost", ...
Sadly, that won't work. 'somehost' in the address= line has to be an IP
address, not a hostname.