Rowland Penny
2023-Dec-19 07:42 UTC
[Samba] Samba as Active Directory - Linux Client doesn't update DNS
On Tue, 19 Dec 2023 06:58:49 +0000 Tilo Lutz via samba <samba at lists.samba.org> wrote:> Hi > I'm playing with smaba the first time so please be patient with me. > I want to setup a small active directory on by Raspberry Pi 4 at home. > Actual my setup is: > -- Router (DHCP, Forward DNS) > \- Raspberry with Samba AD and Bind9 as DNS > Windows and Linux Clients: > DHCP from Router. The router is configured to annouce the Raspberry > as DNS server. I configure it as described at: > https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller > Standard behavior of the router is to put all DCHP clients into it's > own domain with hostname.router. This is working fine. The samba AD > also provides DNS service for the domain .ad DNS updates, Kerberos > etc. is working fine. When a windows client joins the domain, > hostname.ad is added to bind. The router will add it with > hostname.router. Tha't exactly what I want. The host is reachable > with hostname.router and hostname.ad. Unfortunately, this is not > working for a linux client. I used the realmd to join the active > directory. It can access the domain, get users and groups but no dns > entry is added to the bind9 server. I was able to add the client > manually with samba-tool dns add. To me it looks like the linux > client never tried to register its dns entry. So my question is: Do I > expect something from the linux client that is not done by default? > How can I make the linux client to generate/update their DNS records, > including IPv4 and IPv6? Thank you very much, Tilo >A Samba Unix domain member doesn't have the code to update its own dns records. There is a workaround, turn off the dhcp server on the router and read this: https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records Rowland
Joachim Lindenberg
2023-Dec-19 09:19 UTC
[Samba] Samba as Active Directory - Linux Client doesn't update DNS
Or - unless they are "roaming clients" - use static ips for linux domain members... Joachim
Tilo Lutz
2023-Dec-20 13:31 UTC
[Samba] Samba as Active Directory - Linux Client doesn't update DNS
Tilo Lutz via samba <samba at lists.samba.org> wrote:> [...] I was able to add the client > manually with samba-tool dns add. To me it looks like the linux > client never tried to register its dns entry. So my question is: Do I > expect something from the linux client that is not done by default? > How can I make the linux client to generate/update their DNS records, > including IPv4 and IPv6? Thank you very much, TiloOn 19.12.2023 08:42, Rowland Penny wrote via samba:> A Samba Unix domain member doesn't have the code to update its own dns > records. > > There is a workaround, turn off the dhcp server on the router and read > this: > > https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_recordsOn 19.12.2023 10:19, Joachim Lindenberg wrote via samba:> Or - unless they are "roaming clients" - use static ips for linux > domain members...Thank you both for your response. I was unsure if it's normal that unix clients won't update the DNS. My router is providing DHCP but the IP address of the linux client is set to static. therefore, I will just use static IP addresses. I want to keep the DHCP on my router because it's easier to manage for me While inspecting the DNS I saw that the samba active directory domain controller updates it's AAAA records on restart. It has 2 addresses, one local starting with fd00: and one from my internet uplink starting with 2001:. The later one will change we the upink is reestablished. Will samba recognize this and update the record itself? Thank you very much, Tilo