Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.