<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: order of nameservers in dhcp lease is not respected"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90478">90478</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd-resolved: order of nameservers in dhcp lease is not respected
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>minor
          </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>dirocco.nico@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=115829" name="attach_115829" title="tcpdump, resolv.conf and leases output">attachment 115829</a> <a href="attachment.cgi?id=115829&action=edit" title="tcpdump, resolv.conf and leases output">[details]</a></span>
tcpdump, resolv.conf and leases output

I have the router on my lan configured to provide "Domain-Name-Server Option 6"
with a list of dns servers to every client requesting a dhcp lease.

The dns servers are listed in order of preference. I am trying to achieve that
local dns server is the primary resolver for clients.

In the attached txt file you can see some output of tcpdump, /etc/resolv.conf
and /run/systemd/netif/leases/*.

In my example 192.168.178.70 is my local dns server and 212.54.44.54 is my
upstream dns server.

No matter in what order my dhcp server serves the name server list in dhcp
option 6 (see tcpdump output), systemd-networkd always puts the 212.54.44.54 on
top in /etc/resolv.conf.

I could not find any documentation describing this as expected behaviour.</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>