I need a local DNS resolver because my ISP DNS is seriously broken and breaks, in turn, many networks scripts.
Before Precise I could just install
unbound and add
127.0.0.1 as a prepended name server in
/etc/dhcp/dhclient.conf. This worked fine with NetworkManager under any circumstance.
I cannot install
unbound in Precise because it tries to bind on port 53, already used by
dnsmasq, as I read in http://unix.stackexchange.com/questions/59414/understanding-dns-in-ubuntu-12-04. At the same time I do not want to disable dnsmasq or deviate too much from the normal Ubuntu configuration.
What is the Ubuntu way to set up a system-wide local DNS resolver used by dnsmasq?
I was thinking of letting unbound run on different port, let's say
55353, and have
dnsmasq-base forward the requests to
localhost:55353 before using the DHCP-provided DNS addresses. Is this possible?