<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello! I have some questions regarding name resolution system in
17.04.</p>
<div class="post-text" itemprop="text">
<p>After upgrading to 17.04 from 16.04 I can't figure out how host
name resolution system is meant to be configured. First, I've
noticed that after upgrade search domains have disappeared from
<code>/etc/resolv.conf</code>. They came back once I've removed
<code>/etc/resolv.conf</code> symlink and restarted
NetworkManager. But then the contents became as follows:</p>
<pre><code># Generated by NetworkManager
search mydomain1 mydomain2
nameserver 127.0.1.1
</code></pre>
<p>Ok, search domains are there. But why nameserver 127.0.1.1 is
there? No process is listening on that address, hence the name
resolution doesn't work.</p>
<p>AFAIK, 127.0.1.1 is the hard-coded listen address of dnsmasq,
which is not configured in <code>/etc/NetworkManager/NetworkManager.conf</code>:</p>
<pre><code>[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[logging]
level=DEBUG
</code></pre>
<p>Actually, dnsmasq wasn't even installed after upgrade. After
installing dnsmasq and adding the line <code>dns=dnsmasq</code>
into <code>NetworkManager.conf</code>, everything works well,
but I wonder if I am doing something wrong, or is it a bug in
NetworkManager or somewhere else.</p>
<p>So my questions are, is it possible to use systemd-resolved
instead of dnsmasq? If not, what is the purpose of moving to
systemd-resolved?</p>
</div>
</body>
</html>