Tentei adicionar uma pesquisa inversa de um dos meus servidores ao meu controlador de domínio do Active Directory em Ubuntu 16.04.4 com samba 4.3.11 Windows 7 com RSAT instalado, se isso puder ajudar. Estou muito confuso com o que posso fazer a seguir ...
O que eu faço:
sudo samba-tool dns add serveur 0.168.192.in-addr.arpa 5 PTR serveur.domain.local
O que é (firewall desativado):
Failed to connect host 173.13.0.5 on port 135 - NT_STATUS_CONNECTION_REFUSED Failed to connect host 173.13.0.5 (serveur-nginx) on port 135 - NT_STATUS_CONNECTION_REFUSED. ERROR(runtime): uncaught exception - (-1073741258, 'The connection was refused') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 1062, in run dns_conn = dns_connect(server, self.lp, self.creds) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 40, in dns_connect dns_conn = dnsserver.dnsserver(binding_str, lp, creds)
O que é oferecido (Firewall ativo & permissão da porta 135):
ERROR(runtime): uncaught exception - (-1073741772, 'The object name is not found.') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 1062, in run dns_conn = dns_connect(server, self.lp, self.creds) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 40, in dns_connect dns_conn = dnsserver.dnsserver(binding_str, lp, creds)
nslookup 192.168.0.5
Server: 192.168.0.2 Address: 192.168.0.2#53 ** server can't find 5.0.168.192.in-addr.arpa: NXDOMAIN
nslookup serveur.domain.local
Server: 192.168.0.2 Address: 192.168.0.2#53 Name: serveur.domain.local Address: 192.168.56.102 Name: serveur.domain.local Address: 192.168.0.5
host 192.168.0.5
Host 5.0.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
host serveur.domain.local
serveur.domain.local has address 192.168.56.102 serveur.domain.local has address 192.168.0.5
Se eu fizer qualquer um dos itens acima do AD ou servidor com meu anúncio, ele funciona.
sudo samba-tool dns zonelist 192.168.0.2 -U Administrador
Password for [DOMAIN\Administrator]: 3 zone(s) found pszZoneName : 0.168.192.in-addr.arpa Flags : DNS_RPC_ZONE_DSINTEGRATED DNS_RPC_ZONE_UPDATE_SECURE ZoneType : DNS_ZONE_TYPE_PRIMARY Version : 50 dwDpFlags : DNS_DP_AUTOCREATED DNS_DP_DOMAIN_DEFAULT DNS_DP_ENLISTED pszDpFqdn : DomainDnsZones.domain.local pszZoneName : domain.local Flags : DNS_RPC_ZONE_DSINTEGRATED DNS_RPC_ZONE_UPDATE_SECURE ZoneType : DNS_ZONE_TYPE_PRIMARY Version : 50 dwDpFlags : DNS_DP_AUTOCREATED DNS_DP_DOMAIN_DEFAULT DNS_DP_ENLISTED pszDpFqdn : DomainDnsZones.domain.local pszZoneName : _msdcs.domain.local Flags : DNS_RPC_ZONE_DSINTEGRATED DNS_RPC_ZONE_UPDATE_SECURE ZoneType : DNS_ZONE_TYPE_PRIMARY Version : 50 dwDpFlags : DNS_DP_AUTOCREATED DNS_DP_FOREST_DEFAULT DNS_DP_ENLISTED pszDpFqdn : ForestDnsZones.domain.local
Tudo isso com o Virtual Box, por meio do SSH com adaptador somente host e rede interna com um gateway ClearOS.