On 01/01/2023 20:20, Max Serafini wrote:> Sure, here you go!? The files though have been the same throughout. > We use internal DNS. > > _dc2_ > root at dc2:~# cat /etc/samba/smb.conf > # Global parameters > [global] > dns forwarder = 8.8.8.8 > netbios name = DC2 > realm = MODOM.MARIGOLDSANDONIONS.COM <http://MODOM.MARIGOLDSANDONIONS.COM> > server role = active directory domain controller > workgroup = MODOM > idmap_ldb:use rfc2307 = yes > > [netlogon] > path = /var/lib/samba/sysvol/modom.marigoldsandonions.com/scripts > <http://modom.marigoldsandonions.com/scripts> > read only = No > > [sysvol] > path = /var/lib/samba/sysvol > read only = NoNothing wrong there.> > root at dc2:~# cat /etc/hosts > 127.0.0.1 ? ? ? localhost.localdomain ? ? ? ? ? ? ? ? ? localhost > 127.0.1.1 ? ? ? dc2Ah ha Why do you have 'dc2' pointing to '127.0.1.1' ? I suggest you remove whatever requires the '127.0.1.1' (netplan, network manager, ????), you don't need it and it could be what is causing your problem. Rowland
The two are headless boxes. That entry is on both and that's a Ubuntu default. If it doesn't serve any purpose I don't have an issue in removing it. On Sun, Jan 1, 2023 at 9:36 PM Rowland Penny via samba < samba at lists.samba.org> wrote:> > > On 01/01/2023 20:20, Max Serafini wrote: > > Sure, here you go! The files though have been the same throughout. > > We use internal DNS. > > > > _dc2_ > > root at dc2:~# cat /etc/samba/smb.conf > > # Global parameters > > [global] > > dns forwarder = 8.8.8.8 > > netbios name = DC2 > > realm = MODOM.MARIGOLDSANDONIONS.COM < > http://MODOM.MARIGOLDSANDONIONS.COM> > > server role = active directory domain controller > > workgroup = MODOM > > idmap_ldb:use rfc2307 = yes > > > > [netlogon] > > path = /var/lib/samba/sysvol/modom.marigoldsandonions.com/scripts > > <http://modom.marigoldsandonions.com/scripts> > > read only = No > > > > [sysvol] > > path = /var/lib/samba/sysvol > > read only = No > > Nothing wrong there. > > > > > root at dc2:~# cat /etc/hosts > > 127.0.0.1 localhost.localdomain localhost > > 127.0.1.1 dc2 > > Ah ha > > Why do you have 'dc2' pointing to '127.0.1.1' ? > > I suggest you remove whatever requires the '127.0.1.1' (netplan, network > manager, ????), you don't need it and it could be what is causing your > problem. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Quick search points out this is added as a workaround for machines with dynamic IP. https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution Ours have static IP as we can expect on a server. I will test tomorrow and let you know. Thank you both for your help today. On Sun, Jan 1, 2023 at 9:36 PM Rowland Penny via samba < samba at lists.samba.org> wrote:> > > On 01/01/2023 20:20, Max Serafini wrote: > > Sure, here you go! The files though have been the same throughout. > > We use internal DNS. > > > > _dc2_ > > root at dc2:~# cat /etc/samba/smb.conf > > # Global parameters > > [global] > > dns forwarder = 8.8.8.8 > > netbios name = DC2 > > realm = MODOM.MARIGOLDSANDONIONS.COM < > http://MODOM.MARIGOLDSANDONIONS.COM> > > server role = active directory domain controller > > workgroup = MODOM > > idmap_ldb:use rfc2307 = yes > > > > [netlogon] > > path = /var/lib/samba/sysvol/modom.marigoldsandonions.com/scripts > > <http://modom.marigoldsandonions.com/scripts> > > read only = No > > > > [sysvol] > > path = /var/lib/samba/sysvol > > read only = No > > Nothing wrong there. > > > > > root at dc2:~# cat /etc/hosts > > 127.0.0.1 localhost.localdomain localhost > > 127.0.1.1 dc2 > > Ah ha > > Why do you have 'dc2' pointing to '127.0.1.1' ? > > I suggest you remove whatever requires the '127.0.1.1' (netplan, network > manager, ????), you don't need it and it could be what is causing your > problem. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >