When I'm trying to join Ubuntu client machine to domain server I'm getting this error:
Error: DNS_ERROR_BAD_PACKET [code 0x0000251e]
A bad packet was received from a DNS server. Potentially the requested address
does not exist. 2 3 Answers
This issue occurs when /etc/resolv.conf is not setup properly.
Here is a sample resolv.conf:
domain domain.tld
search domain.tld
nameserver <ip address of domain DNS server>
nameserver <ip address of domain DNS server> 1 I had this problem and spent 5 days trawling through forums. In the end I found a little note about DNS being picky about the spelling.
I fixed this by ensuring I used the uppercase letters in the FQDN where necessary. Windows doesn't care about upper and lower case but Linux does so try that.
The command I used was sudo domainjoin-cli join --disable ssh {domain name} {domain admin account name}
Hope this helps someone.
In my case the problem was caused by a second DNS server not being the domain controller.
I had 1 main DNS+DHCP server and 1 DNS+Active Directory server. The DNS records pointed the domain to the Active Directory server. But the DHCP was declaring itself as the DNS to use.
I solved the problem declaring in the DHCP that the DNS server was the DNS+Active Directory server. Apparently the joining is disrupted when the DNS server in use by the client is not the same Active Directory server.