Custom Local DNS with Ubuntu Clients

Tom H tomh0665 at gmail.com
Mon Mar 12 00:30:02 UTC 2018


On Sun, Mar 11, 2018 at 2:34 PM, Aero Maxx <aero.maxx.d at gmail.com> wrote:
> On 11 March 2018 at 17:33, Tom H <tomh0665 at gmail.com> wrote:


>> What is the app that's managing the network? NM? ifupdown?
systemd-networkd?

> I'm unsure, I'm using the default install of Ubuntu Desktop 16.04 LTS

NM.


>> Is resolvconf or systemd-resolved involved in setting up
"/etc/resolv.conf"?

> I believe it is resolvconf as this is installed by default.

OK.


>> What's the output of "ls -l /etc/resolv.conf" and "cat /etc/resolv.conf"?

> root at ubuntu:~# ls -l /etc/resolv.conf
> lrwxrwxrwx 1 root root 29 Mar 10 13:53 /etc/resolv.conf ->
> ../run/resolvconf/resolv.conf

> root at ubuntu:~# cat /etc/resolv.conf
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
> # resolvconf(8)
> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> nameserver 127.0.1.1

So you have both resolvconf and dnsmasq running (IIRC, the Ubuntu default,
as you say above).

AFAIK, you can drop a file into "/etc/dnsmasq.d/" with
"server=nameserver_ip_address" to ensure that dnsmasq forwards queries to
it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180311/901922f9/attachment.html>


More information about the ubuntu-users mailing list