[systemd-devel] [PATCH 1/2] networkd: accept a trailing '.' on the end of domains

Michael Marineau michael.marineau at coreos.com
Wed Jan 28 10:17:20 PST 2015


On Wed, Jan 28, 2015 at 8:49 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Thu, 15.01.15 13:24, Michael Marineau (michael.marineau at coreos.com) wrote:
>
>> While not common outside of BIND configs the implied top level '.' in
>> domains is commonly accepted and crops up in random places. Starting
>> with commit 784d9b9c networkd began validating domains as hostnames
>> which rejects trailing dots, breaking short name resolution in some
>> environments such as Google Compute Engine. This change splits the
>> validation code into two functions to be more tolerant for domains.
>
> Did I get this right? the Google Compute Engine returns a domain name
> with trailing dot in the DHCP domain option?
>
> Our DHCP client should certainly accept that, if that's what people
> send, but I am not sure we should be equally liberal for locally
> configured bits...
>
> I now made this change:
>
> http://cgit.freedesktop.org/systemd/systemd/commit/?id=f50f01f4b738f2f00b30d0e02e8cf54ab99a9f27
>
> Does that make things work on the google thing?

That should be sufficient, and certainly fair to be stricter about
local config files.


More information about the systemd-devel mailing list