domain-name-system – 带DHCP服务器的Samba4内部DNS
发布时间:2020-12-14 23:40:20 所属栏目:资源 来源:网络整理
导读:在FreeBSD上,我们运行Samba4作为DC,直到最近我们的IP地址由路由器DHCP服务器发出.我们切换到在FreeBSD机器上运行DHCP服务器,配置如下: – # dhcpd.conf## Sample configuration file for ISC dhcpd ## option definitions common to all supported networks
在FreeBSD上,我们运行Samba4作为DC,直到最近我们的IP地址由路由器DHCP服务器发出.我们切换到在FreeBSD机器上运行DHCP服务器,配置如下: –
# 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; } 我们现在无法将机器添加到域中.输入凭据后,Windows 8.1客户端会抱怨“找不到路径”,无论是否正确. Samba4配置非常简单: – #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 DNS测试似乎符合预期: – _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. 最后,通过以下方式测试DNS A记录: – host -t A SERVER1.hlb.net 返回以下内容: – SERVER1.hlb.net has address 192.168.1.4 在设置DHCP服务器时似乎我们可能错过了一些配置选项,但是我们现在很难过.任何见解都是极好的,因为我们确信还有其他人对我们有类似的设置. 解决方法
尝试将dns服务器定义到您的子网中:
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; option domain-name "hlb.net"; option domain-name-servers 192.168.1.4; } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |