Samba4内部DNS与DHCP服务器

在FreeBSD上,我们运行Samba4作为DC,直到最近我们的IP地址由路由器DHCP服务器发出。 我们切换到在FreeBSD机器上运行DHCP服务器,具有以下configuration:

# dhcpd.conf # # Sample configuration file for ISC dhcpd # # option definitions common to all supported networks... option domain-name "hlb.net"; option domain-name-servers 192.168.1.4; default-lease-time 600; max-lease-time 7200; # Use this to enble / disable dynamic dns updates globally. #ddns-update-style none; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; # This is a very basic subnet declaration. subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.5 192.168.1.253; option routers 192.168.1.254; } 

我们现在不能将机器添加到域中。 input凭据后Windows 8.1客户抱怨“path未find”,是否正确。

Samba4的configuration非常简单:

 #Global parameters [global] workgroup = HLB realm = HLB.NET netbios name = SERVER1 server role = active directory domain controller dns forwarder = 192.168.1.254 nsupdate command = /usr/local/bin/samba-nsupdate -g allow dns updates = nonsecure [netlogon] path = /var/db/samba4/sysvol/hlb.net/scripts read only = No [sysvol] path = /var/db/samba4/sysvol read only = No [home] path = /srvdata/homes read only = No [profiles] path = /srvdata/profiles read only = No [packages] path = /srvdata/packages read only = No 

DNStesting似乎如预期: – 主机-t SRV _ldap._tcp.hlb.net产量: –

 _ldap._tcp.hlb.net has SRV record 0 100 389 server1.hlb.net. 

和:-

 host -t SRV _kerberos._udp.hlb.net 

产量: –

 _kerberos._udp.hlb.net has SRV record 0 100 88 server1.hlb.net. 

最后,通过以下方式testingDNS Alogging:

 host -t A SERVER1.hlb.net 

以下是返回: –

 SERVER1.hlb.net has address 192.168.1.4 

看来我们在设置DHCP服务器的时候可能已经错过了一些configuration选项,但是我们现在很难过。 任何洞察力都将是非常好的,因为我们确信还有其他人对我们有类似的设置。