[Dnsmasq-discuss] DNS to respond to all requests

Simon Kelley simon@thekelleys.org.uk
Thu, 23 Dec 2004 20:45:53 +0000


Peter Willis wrote:
> Simon Kelley wrote:
> 
>> Harry Newman wrote:
>>
>>> Simon
>>>
>>> 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.
>>
>> Cheers,
>>
>> Simon.
>>
> 
> well, would this work?
> 
> echo "address=/#/somehost" >> /etc/dnsmasq.conf
> echo "1.2.3.4    somehost" >> /etc/hosts
> 
> and then enable the thing that generates MX records for entries in 
> /etc/hosts
> 
> 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.

Cheers,

Simon.