[arch-general] dnsmasq w/ad-blocking hosts file (was NTP: Possible permissions bug)

luc.linux at mailoo.org luc.linux at mailoo.org
Sat May 10 12:43:38 EDT 2014

On Sat, May 10, 2014 at 12:41:36PM -0400, Carl Schaefer wrote:
> Also, since my machine doesn't travel:
> . add "nohook resolv.conf" to /etc/dhcpcd.conf
> . put "nameserver" in /etc/resolv.conf
> . add to /etc/dnsmasq.conf
>   no-resolv
>   server=
>   server=
> I haven't set this up on a laptop yet, but I imagine that would be more
> complicated because sometimes the google DNS servers will be
> inaccessible (e.g. hotel wifi).  Using OpenDNS on port 5353 might be a
> good alternative.
> Carl
for that case, I have modified /etc/resolvconf.conf to make netctl
generate dns information on /etc/resolvdns.conf. I then setted
/etc/resolv.conf to localhost, and configured dnsmasq to use
/etc/resolvdns.conf. It is a bit a a hack, but it works.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140510/b09f520f/attachment.asc>

More information about the arch-general mailing list