<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 - [networkd/resolved] [v219] nameserver reverted to fallback after suspend"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90265">90265</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[networkd/resolved] [v219] nameserver reverted to fallback after suspend
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>tom.ty89@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=115493" name="attach_115493" title="test case">attachment 115493</a> <a href="attachment.cgi?id=115493&action=edit" title="test case">[details]</a></span>
test case

I'm using systemd-networkd and systemd-resolved for networking. I can get
ip/route/nameserver from my router successfully through DHCP.

But every time after the machine is suspended, the nameserver is reverted to
the fallback ones. Only restarting networkd can make it get back to the
nameserver assigned by the router. Restarting resolved and deleting
/run/systemd/resolve/resolv.conf manually in between will not do the job.

Other parts (ip/route) of the network are fine. I can get access to the
internet before restarting systemd-networkd.

/etc/systemd/network/dhcp.network:
[Network]
DHCP=v4

This is the only network file I have.</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>