[systemd-devel] Providing DNS for DHCPServer configuration

Tom Gundersen teg at jklm.no
Fri Mar 27 05:33:35 PDT 2015

Hi Ash,

We do want some functionality like this. However, I don't think we
should simply default to assuming the DHCP server is also a DNS
server. The way it should work is to pass to the client all the (non
restricted, i.e., where Domains= is not set, or includes the wildcard)
DNS servers configured for the host.

That has the restriction that any DNS server you want to pass on to
the client must also be a valid DNS server on the server. Which I
think is fine.

Makes sense?



On Wed, Mar 25, 2015 at 1:44 AM, Ash Charles <ashcharles at gmail.com> wrote:
> Hi,
> I'm using the DHCPServer option within systemd-networkd along with
> hostapd to provide a basic wireless access point on an embedded
> system.  When my client systems connect, they make a DHCP request that
> includes a parameter request for a Domain Name Server (option
> 6)---standard fare I think.  The DHCPAck/DHCPOffer from
> systemd-network doesn't provide a response to this part of the request
> so the client needs to manually configure a DNS server.  I created a
> rudimentary patch (attached) that uses the access point IP as the DNS
> server---seems to work okay for my particular use case though I
> recognize this is *far* from generic.
> Is there 1. a different/better way of doing this and, 2. if not, is
> such a feature desirable for systemd-networkd/what might a good
> implementation look like?
> Thanks for any inights!
> --Ash
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel

More information about the systemd-devel mailing list