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? -- Bob Wooldridge EDM Incorporated
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
On 07/25/2019 03:48 PM, Rowland penny via samba wrote:> 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.Ok, so is there anything to look for that might indicate that my DC does not have the right thing in it to respond to a samba-tool serverinfo query? Or let's ask this: How important is it that my DC which has transferred all 7 rolls to it errors out when I do a samba-tool dns serverinfo command? -- Bob Wooldridge EDM Incorporated