On Thu, 14.08.14 02:04, Lennart Poettering (lenn...@poettering.net) wrote: > On Mon, 04.08.14 18:33, Zbigniew Jędrzejewski-Szmek (zbys...@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 resolved... Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel