Cannot join as secondary DC - samba 4.2.2 - <bug?>

Rowland Penny repenny241155 at gmail.com
Sun Jun 7 07:57:08 MDT 2015


On 07/06/15 14:03, bogdan_bartos wrote:
> This is from the secondary DC I am trying to join:
>
> [root at backupdc ~]# cat /etc/resolv.conf
> # Generated by NetworkManager
> search fileserver.specified.ca
> nameserver 192.168.100.253
>
> [root at backupdc ~]# cat /etc/hosts
> 127.0.0.1   localhost localhost.localdomain localhost4
> localhost4.localdomain4
> 192.168.100.253 FILESERVER.fileserver.specified.ca      FILESERVER
> 192.168.100.242 BACKUPDC.fileserver.specified.ca        BACKUPDC
> ::1         localhost localhost.localdomain localhost6
> localhost6.localdomain6
>
> This is from the primary DC:
>
> [root at fileserver etc]# cat /etc/resolv.conf
> # Generated by NetworkManager
> search fileserver.specified.ca
> nameserver 192.168.100.253
> nameserver 192.168.100.242
> nameserver 192.168.100.1
>
> [root at fileserver etc]# cat /etc/hosts
> 127.0.0.1               localhost.localdomain localhost
> 192.168.100.242 BACKUPDC.fileserver.specified.ca   BACKUPDC
> ::1             localhost6.localdomain6 localhost6
>
> The primary DC is 192.168.100.253 and the secondary DC is 192.168.100.242 -
> they both have static IPs. I do have a 3rd DNS that is 192.168.100.1 that is
> not samba based. It is the gateway DNS. Both systems are running Fedora 22
> x64.
>
>
>
> --
> View this message in context: http://samba.2283325.n4.nabble.com/Cannot-join-as-secondary-DC-samba-4-2-2-bug-tp4686826p4686859.html
> Sent from the Samba - samba-technical mailing list archive at Nabble.com.

OK, lets see if I have got this correct:

Your first DC has the ipaddress 192.168.0.253 and the FQDN 
fileserver.fileserver.specified.ca
The computer you want to be the second DC has the ipaddress 
192.168.100.242 and the FQDN backupdc.fileserver.specified.ca

This is what I would set before the join:

On the first DC, set /etc/resolv.conf to:

search fileserver.specified.ca
nameserver 192.168.100.253

Set /etc/hosts to:

127.0.0.1       localhost.localdomain localhost
192.168.100.253 fileserver.fileserver.specified.ca      fileserver
::1             localhost6.localdomain6 localhost6

On the second DC, set /etc/resolv.conf to:

search fileserver.specified.ca
nameserver 192.168.100.253

Note this is what you already have.

Set /etc/hosts to:

127.0.0.1       localhost.localdomain localhost
192.168.100.242 backupdc.fileserver.specified.ca      backupdc
::1             localhost6.localdomain6 localhost6

You should also have a line in smb.conf on the first DC : dns forwarder 
= 192.168.100.1
This is provided that 192.168.100.1 is is a router or similar that knows 
nothing about your samba AD domain and you are using the internal AD dns 
server. If you are using bind9 on the DCs then the forwarder needs to be 
set in the named conf files, if you are using anything else, well don't.

Once you do manage to join the second DC, you will need to change the 
/etc/resolv.conf files on both DCs, they need to point at each other and 
then themselves:

first DC:

search fileserver.specified.ca
nameserver 192.168.100.242
nameserver 192.168.100.253

second DC:

search fileserver.specified.ca
nameserver 192.168.100.253
nameserver 192.168.100.242

Rowland


More information about the samba-technical mailing list