[Dnsmasq-discuss] host resolved local and remote records too

Papp Tamas tompos at martos.bme.hu
Fri Jan 18 08:53:29 GMT 2013


On 01/17/2013 04:12 PM, Papp Tamas wrote:
>
> hi All,
>
> I don't find the appropriate configuration for a situation.
>
> $ host machine.domain.com
> machine.domain.com has address 10.0.0.156
> machine.domain.com is an alias for fw.domain.com.
> machine.domain.com is an alias for fw.domain.com.
>
>
> hosts file entry:
>
> 10.0.0.156    machine machine.domain.com
>
>
> Ouside:
>
> $ host machine.domain.com 8.8.8.8
> Using domain server:
> Name: 8.8.8.8
> Address: 8.8.8.8#53
> Aliases:
>
> machine.domain.com is an alias for fw.chemaxon.com.
> fw.domain.com has address 1.1.1.1
>
>
> So dnsmasq is configured to resolve machine.domain.com to a local IP address, it works fine.
> However in the internet domain.com is a real domain and there is the hostname as a CNAME record. And
> among with the masked hostname dnsmasq resolves the CNAME record too.
>
>
> Why is that? How can I avoid this behaviour?
>

If I set it as CNAME record in the dnsmasq configuration, works fine. But I want to keep the 
information in the hosts file.

Thank you,
tamas




More information about the Dnsmasq-discuss mailing list