Итак, один из первых затыков.
root@ubuntu12:/home/yoreg# host -t A ubuntu12.domain.loc
Host ubuntu12.domain.loc not found: 3(NXDOMAIN)
root@ubuntu12:/home/yoreg#
Пытаюсь создать вручную А запись, получаю:
root@ubuntu12:/home/yoreg# /usr/local/samba/bin/samba-tool dns add 192.168.1.13 domain.loc ubuntu12 A 192.168.1.5 -Uadministrator
Failed to connect host 192.168.1.13 on port 135 - NT_STATUS_CONNECTION_REFUSED
Failed to connect host 192.168.1.13 (192.168.1.13) on port 135 - NT_STATUS_CONNECTION_REFUSED.
ERROR(runtime): uncaught exception - (-1073741258, 'The connection was refused')
File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 1056, in run
dns_conn = dns_connect(server, self.lp, self.creds)
File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 37, in dns_connect
dns_conn = dnsserver.dnsserver(binding_str, lp, creds)
root@ubuntu12:/home/yoreg#
Думаю что в iptables надо правила добавлять.
iptables -A INPUT -s 192.168.1.0/24 -p udp -m multiport --ports 135,136,137,138,139,445 -j ACCEPT
iptables -A OUTPUT -d 192.168.1.0/24 -p udp -m multiport --ports 135,136,137,138,139,445 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -p tcp -m multiport --ports 135,136,137,138,139,445 -j ACCEPT
iptables -A OUTPUT -d 192.168.1.0/24 -p tcp -m multiport --ports 135,136,137,138,139,445 -j ACCEPT
Что я делаю не так?
Нашел ошибку, исправил, все получилось, едем дальше.
root@ubuntu12:/home/yoreg# /usr/local/samba/bin/samba-tool dns add 192.168.1.5 domain.loc ubuntu12 A 192.168.1.13 -Uadministrator
Password for [DOMAIN\administrator]:
Record added successfully
root@ubuntu12:/home/yoreg#
root@ubuntu12:/home/yoreg# host -t A ubuntu12.domain.loc
ubuntu12.domain.loc has address 192.168.1.13
root@ubuntu12:/home/yoreg#