[Dnsmasq-discuss] Prevent forwarding of requests for hosts Dnsmasq already knows about

Ian Scott ian at polpo.org
Tue Feb 24 07:03:32 GMT 2009


DNS for my domain out on the Internet is served by Yahoo Small  
Business, and they serve a wildcard CNAME for that domain:  
*.example.com is a CNAME for the machine hosting the web site for  
example.com. On my local network, I have Dnsmasq serving DNS and DHCP.  
For DHCP hosts, I get back both the A record from Dnsmasq and the  
wildcard CNAME from Yahoo. For example:
$ host laptop
laptop.example.com has address 192.168.0.238
laptop.example.com is an alias for p4p.geo.vip.re4.yahoo.com.
laptop.example.com is an alias for p4p.geo.vip.re4.yahoo.com.
p4p.geo.vip.re4.yahoo.com mail is handled by 0 .

I'd like Dnsmasq to not forward requests for any records to the  
upstream DNS servers for hosts it knows about via DHCP. It seems to be  
the case already for hosts in /etc/hosts:
$ host server
server.example.com has address 192.168.0.10

Ian



More information about the Dnsmasq-discuss mailing list