Please excuse my lack of networking knowledge, it's not my day job and I'm trying to pick it up as I go.<br>
<br>
Other threads suggest this is what the server config option is for, I 
was surprised it didn't work straight away. Is this not right?<br>
<br>
I know ip tables can be very complex to set up but know nothing about them. Can someone quickly just tell me how to get <a href="http://twitter.com/" target="_blank">twitter.com</a>
 and other named domains to be resolved 'properly' via eth0 no matter 
which interface the request is made on, while still resolving all other 
addresses to localhost on wlan0 as they do now?<br>
<br>
Thanks in advance<br><br><div class="gmail_quote">On Thu, Mar 22, 2012 at 4:09 PM, <a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a> <span dir="ltr"><<a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">DNS is the wrong place to implement this behavior.<div><br></div><div>Interception of TCP connections is done with packet rewriting rules in iptables, and you'll need to set up your exceptions there also.<br>
<br><div class="gmail_quote"><div><div></div><div class="h5">
On Thu, Mar 22, 2012 at 6:01 AM, Ian Rose <span dir="ltr"><<a href="mailto:irose123@gmail.com" target="_blank">irose123@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div class="h5">
I have set up a Ubuntu 10.04 LTS desktop machine with 2 interfaces (eth0
 and wlan0). wlan0 acts as a wifi access point using hostapd.<br>
<br>
dnsmasq is installed OK, and everything works so that locally on that 
machine DNS works fine as normal, but connections over wlan0 get 
everything routed to localhost. This means for example that you can view
 a website using firefox on the local machine, but connect via wlan from
 a phone, for example, and you get routed to an internally hosted 
website. All well and good so far.<br>
<br>
I want to add domains that will be excepted from this default behavior, 
for example to allow someone connected via wlan to be able to tweet from
 the internal website. I have tried using both the server and address 
options in the dnsmasq.conf file, but neither work.<br>
<br>
<b>#This has no effect at all:<br>
server=/<a href="http://twitter.com/#" target="_blank">twitter.com/#</a><br>
<br>
#Neither does this:<br>
server=/<a href="http://twitter.com/192.168.1.254@eth0" target="_blank">twitter.com/192.168.1.254@eth0</a></b><br>
<br>
Where 192.168.1.254 is the IP address of the router it's attached to via
 eth0 and the gateway to the internet. Nor does replacing this IP 
address with the DNS lookup addresses specified in the router config. IP
 address for <a href="http://twitter.com" target="_blank">twitter.com</a> is gives 10.0.0.2 as before, the address of 
this machine via wlan0.<br>
<br>
Alternatively trying something like the following seems to resolve 
addresses OK, but makes a browser on the wireless connected device (eg 
phone) hang:<br>
<b><br>
address=/<a href="http://twitter.com/199.59.150.7" target="_blank">twitter.com/199.59.150.7</a><br>
address=/<a href="http://twimg.com/184.169.81.33" target="_blank">twimg.com/184.169.81.33</a><br>
address=/<a href="http://ssl.google-analytics.com/173.194.41.94" target="_blank">ssl.google-analytics.com/173.194.41.94</a><br>
address=/<a href="http://www.google-analytics.com/173.194.41.137" target="_blank">www.google-analytics.com/173.194.41.137</a></b><br>
<br>
Any ideas what is going on? Why doesn't the server option have any effect at all?<br>
<br>
Thanks.
<br></div></div>_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>