[systemd-devel] [PATCH] resolved: re-add support for getting local domain from DHCP

Lennart Poettering lennart at poettering.net
Wed Aug 13 17:17:54 PDT 2014

On Thu, 14.08.14 02:04, Lennart Poettering (lennart at poettering.net) wrote:

> On Mon, 04.08.14 18:33, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:
> > > Does this make any sense? Opinions?
> > Yes, totally makes sense. But the name UseDomains is confusing though.
> > IIUC, we have two separate concepts:
> >  1. using a specific interface (and a set of DNS resolvers tied to it)
> >     when resolving specific fqdns (resolve list)
> >  2. using specifc fqdns when a single-label name is given (search list)
> > 
> > Your description sounds like DHCP.UseDomains=yes would mean using
> > the DHCP-supplied list for 2. I think it should be used for 1 too.
> > So maybe there should be
> > 
> >    UseDomains=resolve|search|all
> > 
> > (all in case we add futher options later on).
> Makes sense, I agree.

Hmm, actually thinking about this, I think this would end up being quite
complex, since networkd would then ultimately have to pass four bits
information to resolved, in individual fields: the manually
configured per-interface domain list + its resolve/search/all
settings + the dhcp supplied domain list + its resolve/search/all. I'd
really prefer if we simplify that, so that sd-network doesn't have to
have any dhcp-specific APIs, but instead would always combine the dhcp
data with the statically configured data and pass it as one to


Lennart Poettering, Red Hat

More information about the systemd-devel mailing list