<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi everyone,</div>

<div>I am new to mailing lists and to dnsmasq.</div>

<div> </div>

<div>I came to the solution because the hosts file did not allow me to do wildcards as</div>

<div> </div>

<div>127.0.0.1 *.canonical.com</div>

<div> </div>

<div>In a Ubuntu thread someone suggested using dnsmasq which I downloaded and setup as all the other threads suggested for a local dns-server on the local computer. However after a restart of the system starting Firefox did still result in the system creating a connection to some of the *.canonical.com servers which was supposed to be blocked with dnsmasq.</div>

<div> </div>

<div>In bash I wrote dnsmasq and got the following error</div>

<div>dnsmasq: failed to create listening socket for port 53: Access denied</div>

<div> </div>

<div>with another command dnsmasq listens to port 53 via UDP.</div>

<div> </div>

<div>My question therefore is - what should my settings be in a Ubuntu-box 14.10 for dnsmasq to succesfully block desired wildcard domains via the 127.0.0.1 loopback?</div>

<div> </div>

<div>My settings differs from the default as follows. I did these changes because different threads and blogs suggested them. I only want the DNS-service not a DHCP-service. But perhaps that is necessary to get it working? If it is necessary, will dnsmasq then connect to the local WLAN by itself or do additional settings have to be made?</div>

<div> </div>

<div>/etc/dhcp/dhclient.conf</div>

<div>#https://help.ubuntu.com/community/Dnsmasq<br/>
prepend domain-name-servers 127.0.0.1;</div>

<div> </div>

<div>/etc/dnsmasq.conf</div>

<div>
<div>listen-address=127.0.0.1</div>

<div>no-dhcp-interface=eth0<br/>
no-dhcp-interface=wlan0</div>

<div>expand-hosts</div>

<div>address=/double-click.net/127.0.0.1<br/>
address=/canonical.com/127.0.0.1<br/>
address=/facebook.com/127.0.0.1<br/>
address=/twitter.com/127.0.0.1<br/>
address=/*.canonical.com/127.0.0.1 #was added because only canonical.com did not help, but neither did *.canonical do</div>
</div>

<div> </div>

<div>#not a setting</div>

<div>#Best regards</div></div></body></html>