[Samba] Joining Samba4 to existing AD

Rowland Penny rpenny at samba.org
Wed Apr 12 17:06:54 UTC 2017


On Wed, 12 Apr 2017 11:54:42 -0500
Erick Ocrospoma <zipper1790 at gmail.com> wrote:

> Hi guys,
> 
> I changed my /etc/hosts and looks like this:
> 
> 
> [root at lim-inf1-dns-02 ~]# cat /etc/hosts
> 127.0.0.1   localhost localhost.localdomain localhost4
> localhost4.localdomain4
> ::1         localhost localhost.localdomain localhost6
> localhost6.localdomain6
> 10.3.251.19      dc-01.example.com  dc-01
> 172.28.240.252  dc-02.example.com  dc-02
> 
> 
> 
> So, to be clear, dc-01.example.com is the Windows AD hostname.
> dc-02.example.com is the linux machine itself
> 

Remove the windows machine, it shouldn't be there.

The AD DC should be found by DNS, is the windows DC running a DNS
server ?

All you really need in /etc/hosts is:

127.0.0.1 localhost
::1 localhost
172.28.240.252  dc-02.example.com  dc-02

I wonder if you need to pre-create the new DCs dns info in AD before
the join ?

Rowland



More information about the samba mailing list