<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - systemd-resolved: domain and search lines missing from resolv.conf"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85397">85397</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd-resolved: domain and search lines missing from resolv.conf
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>aelschuring@hotmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>(forwarded from <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766413">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766413</a>)

It seems systemd-resolved (Debian version 215-5) is not writing any domain
suffixes into its resolv.conf file:

$ cat netif/leases/4:
# This is private data. Do not parse.
ADDRESS=172.22.15.58
NETMASK=255.255.255.0
ROUTER=172.22.15.5
SERVER_ADDRESS=172.22.15.5
NEXT_SERVER=0.0.0.0
DNS=172.22.21.5 172.22.21.7
NTP=172.22.21.5 172.22.21.19
DOMAINNAME=intra.loos.site
$ cat resolve/resolv.conf
# This file is managed by systemd-resolved(8). Do not edit.
#
# Third party programs must not access this file directly, but
# only through the symlink at /etc/resolv.conf. To manage
# resolv.conf(5) in a different way, replace the symlink by a
# static file or a different symlink.

nameserver 172.22.21.5
nameserver 172.22.21.7
nameserver 172.22.21.5
# Too many DNS servers configured, the following entries may be ignored
nameserver 172.22.21.7
nameserver 2a01:4f8:161:4109::6
nameserver 2001:4ba0:cafe:383::1
nameserver 2a00:1768:1005:1000:1000:1000:e621:4948

It also seems that systemd-networkd is not writing out any SEARCH directives
either, as my dhcpd.conf contains the following:
   option domain-name "intra.loos.site";
   option domain-search "loos.site";
I would have expected to see both domains present in the netif/leases file.
This works fine with both ISC's dhcp client and Busybox' udhcp.

Finally, it would be nice if resolved would notice duplicate nameservers on
separate interfaces (wireless and wired in my case) and not write them out
twice.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>