i have a problem with the domain join tool to join ubuntu machines into my server.
Ive got different ubuntu machines i like to join, they are somewhat vanilla Ubuntu 20.04.2 LTS.
On the first machine i have to check the “Set UCS DC as DNS Server” and it wokred like a charm.
However, on the next machine the tool started to fail "The domain join failed The UCS master name [MY NAME] could not be resolved.
Could someone help me about this ? Probably something in the DNS/network manager.
i would check that the client is clearly using the correct domain name resolver.
sometimes the ubuntu internal tools “put it back” to the old version.
then check you are infact using the correct domain/commands.
Not sure where to check. But when I go to the settings of the current WiFi connection - ipv4 - the DNS value is my univention server. Is that the right location to check?
if only…
you may need to drop down into your terminal…
because it is possible for the linux to have other resolvers in the resolver file.
the wifi just says “these are the resolvers i provided”
go check out
$ cat /etc/resolv.conf
and the dreaded “network manager” in settings…
also ensure you only have a wifi connection not ethernet as well
that 127.x.x.x.x setting is like a dummy proxy that points to the other DNS resolvers.
that might still be hidden some place.
have a look in network settings in the GUI, under network manager
I have checked the netplan dir on both machines (the one that successfully joined and the one that not) and i have just one file in the dir, which is 01-network-manager-all.yaml
$ cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
I just learned that this is not the right way to fix the problem. Rather, what needs to be fixed is the cause of the name resolution not working both ways, DNS and rDNS.
In my case, there was a missing PTR entry for the PDN (=DC) in the corresponding reverse lookup zone. This can be added in the UMC GUI under Domain–>DNS or on the command line as described here Upgrade working version 4.4 to 5 - DNS zones found no host record for nameserver
More or less yes, except that you also need to handle the case, that getaddrinfo() returns nothing, which needs to be translated to the function returning False:
And before someone asks: I already created an internal pull/merge-request, which is still stuck in our queue; sadly I have no ETA when it will be fixed.
ive checked the updated version of the join script with ubuntu 22.04, which shall be supported but “BOOM joine failed”
in order to keep this topic clean, i started a new one as its 22,04. Hopefully, we can solve this soon.