I'm trying to set up a local samba domain controller in a mixed environment (Ubuntu, Linux, OSX).
Domain provisioning worked as per the samba wiki, all the suggested tests succeed, joining Linux hosts to the domain worked as well. DNS Backend is SAMBA_INTERNAL
.
The DC is on Ubuntu 20.04 as LXC on a Proxmox Hypervisor, Linux host the same, Windows 10 hosts are both a VM on the Hypervisor as well as my physical machine.
Hostname of the DC is: dc1.myhouse.mydomain.com
IP address of the DC is: 192.168.0.10
Local domain name is: myhouse.mydomain.com
I own and operate mydomain.com
publicly
Problem: When trying to join a Windows host to the domain, I get an error "An Active Directory Domain Controller [...] could not be contacted"
I suspect that is has to do with Windows hosts not searching for the domain correctly:
ping dc1
Pinging [...]
Reply from 192.168.0.10
ping dc1.myhouse.mydomain.com
Pinging [...]
Reply from 185.16.[...] <- My webserver's IP address
Whereas on linux host:
ping dc1
Ping [...]
64 bytes from 192.168.0.10 [...]
ping dc1.myhouse.mydomain.com
Ping [...]
64 bytes from 192.168.0.10 [...]
I have double-checked that the ip address of the DC is configured as primary (and only) DNS server on the windows hosts.
Also, on Windows host, explicitly setting the DNS server in nslookup works:
C:\Users\Me>nslookup
Default Server: fritz.box
Address: fd00::2416[...]
> dc1.myhouse.mydomain.com
Server: fritz.box
Address: fd00::2416[...]
Non-authoritative answer:
Name: dc1.myhouse.mydomain.com
Address: 185.16.[...]
> server 192.168.0.10
Default Server: [192.168.0.10]
Address: 192.168.0.10
> dc1.myhouse.mydomain.com
Server: [192.168.0.10]
Address: 192.168.0.10
Name: dc1.myhouse.mydomain.com
Address: 192.168.0.10
Am I on the right track concerning the root cause?
Any suggested resources on how to explicitly track down what's going on when trying to join the Windows hosts?
fritz.box
as the initial DNS server... In general, I don't think it's a good idea to use the same domain as both an AD domain and a router-managed "LAN DNS" domain – precisely to avoid this kind of issue.