[Samba] How to validate samba's DNS Server
Rowland penny
rpenny at samba.org
Thu Jul 25 20:48:24 UTC 2019
On 25/07/2019 21:05, Robert A Wooldridge via samba wrote:
> Is there a way to check that the DNS server in Samba has valid data
> apart form samba-tool or the other tools like host or dig? Is there a
> way to use ldbsearch to see if the data is there?
>
>
>
Yes, you just need to know the 'magic' incantations ;-)
Try this on a Samba DC:
ldbsearch --cross-ncs --show-binary -H /var/lib/samba/private/sam.ldb -b
'DC=samdom,DC=example,DC=com' -s sub '(objectClass=dnsNode)' > result.txt
All on one line and change to match your dns domain etc.
Rowland
More information about the samba
mailing list