[Dnsmasq-discuss] Domains with forced IP address, add exceptions for subdomains

Simon Kelley simon at thekelleys.org.uk
Tue May 31 19:39:53 BST 2011


On 31/05/11 19:30, Daniel Antonio wrote:
>
> I have this questions about of "dnsmasq.conf" in this "section":
>
> # Add domains which you want to force to an IP address here.
> address=/contacts.msn.com/ <http://contacts.msn.com/>64.4.23.9
> <http://127.0.0.1/>
> address=/msn.com/ <http://msn.com/>127.0.0.1 <http://127.0.0.1>
>
> In this case, I try to filter all "msn.com <http://msn.com>" queries,
> except for *.contacts.msn.com <http://contacts.msn.com>, but the thing
> is the IP "64.4.23.9" (is a real IP of Microsoft for that DNS) is
> probably a temporal IP address. Can I force to forward the query like
> this? :
>
> address=/contacts.msn.com/ <http://contacts.msn.com/>FORWARD_QUERY
> address=/msn.com/ <http://msn.com/>127.0.0.1 <http://127.0.0.1/> #This
> line will be skipped if the condition of previous line is satisfied
>
> Thanks.
>
>

 From the man page:

The special server address ’#’ means, "use the  standard  servers",  so 
  --server=/google.com/1.2.3.4
--server=/www.google.com/#  will  send  queries  for  *.google.com to 
1.2.3.4, except *www.google.com
which will be forwarded as usual.

so do something like

server=/contacts.msn.com/#
address=/msn.com/127.0.0.1


HTH

Simon.


>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list