-
Notifications
You must be signed in to change notification settings - Fork 30
No domain
entry in /etc/resolv.conf
on Azure
#267
Comments
I can see there is a bug report in systemd, pretty old actually and still open: https://bugs.freedesktop.org/show_bug.cgi?id=85397 |
It looks like UseDomains just needs to be set. |
Which isn't unset, as far as I can see. |
Looking through systemd-resolved, I see that it only writes "nameserver" and "search". Domains and search suffixes supplied through DHCP are written into /etc/resolv.conf as "search". Is there a reason you need "domains" in particular? |
What I see is there is only |
Ah, so you only have a single "nameserver" entry is your /etc/resolv.conf? Without "search", short hostnames won't work. Which version of CoreOS is this? Can you show the contents of /var/log/waagent.conf? |
Note: last I looked networkd did not yet support the dns search dhcp option which is a newer standard for providing multiple domains. For the most part we get by since many networks also set the older single domain option. |
Image ID is
|
With
And with
|
That long domain name looks suspicious. I bet networkd/resolved are getting hung up on that. Can you try with a shorter hostname (just to verify)? |
@crawford well spotted, it works with a shorter domain.
|
OK, thanks for confirming. I believe the upper limit is 64 characters right now. Let me dig into that a bit. Silently failing like this is a problem. |
it turned out the issue was due to the domain lenght, so let's just keep it short.
this is a bug in systemd. when your dhcp server replies with a domain longer than HOST_NAME_MAX, systemd-networkd decides to silently drop it. |
Fixed via https://github.com/coreos/systemd/pull/3. |
it turned out the issue was due to the domain lenght, so let's just keep it short.
it turned out the issue was due to the domain lenght, so let's just keep it short.
Starting
dhcpcd.service
remedies the issue. At glance, it looks just like #220, but I know that had been fixed.The text was updated successfully, but these errors were encountered: