[Samba] Block samba hosts by domain
Linda W
samba at tlinx.org
Thu Nov 10 20:37:57 UTC 2016
Erick Ocrospoma via samba wrote:
> On 10 November 2016 at 07:51, Vinicius Bones Silva via samba <
> samba at lists.samba.org> wrote:
>
>
>> PROBABLY its a problem with your reverse dns resolution.
>>
> Hi,
>
> DNS resolution seems to work fine.
>
----
Vinicius didn't ask about DNS resolution, exactly, but
*reverse* DNS resolution -- i.e. looking up a name from an address.
At best, nslookup is the wrong tool:
> [root at server0 ~]# nslookup 172.25.0.100
> Server: 172.25.0.254
> Address: 172.25.0.254#53
>
---
as the above shows: not only does nslookup on the ip not
return the name, but it returns the IP for a different machine!
If you have 'dig', the "-x" option should do the trick.
dig -x 172.25.0.100
If you want to not take a cached answer (as the dig, above does),
you can specify a server or trace from the root:
dig @dns-server1 -x IPaddr
dig @dns-server2 -x IPaddr
or tracing:
dig +trace -x IPaddr
Cheers,
-l
More information about the samba
mailing list