[systemd-devel] Providing DNS for DHCPServer configuration
teg at jklm.no
Fri Mar 27 05:33:35 PDT 2015
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.
On Wed, Mar 25, 2015 at 1:44 AM, Ash Charles <ashcharles at gmail.com> wrote:
> 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!
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
More information about the systemd-devel