[Samba] bind-dns Folder Missing for Samba4 Setup in Ubuntu
Rowland penny
rpenny at samba.org
Sun Sep 22 16:56:52 UTC 2019
On 22/09/2019 17:20, Christopher Wooley wrote:
>
> Thank you, I didn't realize the version of Samba was so old, in the
> Ubuntu 18 repos. I found a different PPA and upgraded to 4.10.8. After
> restarting the service, it created the folder.
It is the nature of distros that packages are probably behind the times,
some distros more than others ;-)
>
> I use Webmin to manage DNS, so one thing I'm confused about is, will
> Samba be adding the zones so they will be manageable by bind and
> Webmin or will I have to use samba-tool to manage the local AD's DNS?
> Samba isn't creating zone files, like Bind, they don't show up in
> Bind's Webmin module and I can't find any files that are being created
> by Samba that look like Bind's zone files.
Samba dns files are stored in AD, you will not find any bind files that
you are used to ;-)
Try this (adjusted for your setup):
ldbsearch --cross-ncs --show-binary -H /var/lib/samba/private/sam.ldb -b
'DC=samdom.example.com,CN=MicrosoftDNS,DC=DomainDnsZones,DC=samdom,DC=example,DC=com'
-s sub '(&(objectClass=dnsNode)(name=@))'
You should get something like this:
dn:
DC=@,DC=samdom.example.com,CN=MicrosoftDNS,DC=DomainDnsZones,DC=samdom,DC=example,DC=com
objectClass: top
objectClass: dnsNode
instanceType: 4
whenCreated: 20151106115624.0Z
uSNCreated: 4060
showInAdvancedViewOnly: TRUE
name: @
objectGUID: 7ad014c4-c1e9-4cb4-9f0d-96d0272af23d
objectCategory:
CN=Dns-Node,CN=Schema,CN=Configuration,DC=samdom,DC=example,DC=com
dc: @
dnsRecord: NDR: struct dnsp_DnssrvRpcRecord
wDataLength : 0x004f (79)
wType : DNS_TYPE_SOA (6)
version : 0x05 (5)
rank : DNS_RANK_ZONE (240)
flags : 0x0000 (0)
dwSerial : 0x0000ed19 (60697)
dwTtlSeconds : 0x00000e10 (3600)
dwReserved : 0x00000000 (0)
dwTimeStamp : 0x00000000 (0)
data : union dnsRecordData(case 6)
soa: struct dnsp_soa
serial : 0x0000ed19 (60697)
refresh : 0x00000384 (900)
retry : 0x00000258 (600)
expire : 0x00015180 (86400)
minimum : 0x00000e10 (3600)
mname : dc4.samdom.example.com
rname : hostmaster.samdom.example.com
dnsRecord: NDR: struct dnsp_DnssrvRpcRecord
wDataLength : 0x001a (26)
wType : DNS_TYPE_NS (2)
version : 0x05 (5)
rank : DNS_RANK_ZONE (240)
flags : 0x0000 (0)
dwSerial : 0x0000ec29 (60457)
dwTtlSeconds : 0x00000384 (900)
dwReserved : 0x00000000 (0)
dwTimeStamp : 0x00000000 (0)
data : union dnsRecordData(case 2)
ns : dc8.samdom.example.com
dnsRecord: NDR: struct dnsp_DnssrvRpcRecord
wDataLength : 0x001a (26)
wType : DNS_TYPE_NS (2)
version : 0x05 (5)
rank : DNS_RANK_ZONE (240)
flags : 0x0000 (0)
dwSerial : 0x0000ec29 (60457)
dwTtlSeconds : 0x00000384 (900)
dwReserved : 0x00000000 (0)
dwTimeStamp : 0x0037ceba (3657402)
data : union dnsRecordData(case 2)
ns : dc4.samdom.example.com
dnsRecord: NDR: struct dnsp_DnssrvRpcRecord
wDataLength : 0x0004 (4)
wType : DNS_TYPE_A (1)
version : 0x05 (5)
rank : DNS_RANK_ZONE (240)
flags : 0x0000 (0)
dwSerial : 0x0000ec29 (60457)
dwTtlSeconds : 0x00000384 (900)
dwReserved : 0x00000000 (0)
dwTimeStamp : 0x00000000 (0)
data : union dnsRecordData(case 1)
ipv4 : 192.168.0.8
dnsRecord: NDR: struct dnsp_DnssrvRpcRecord
wDataLength : 0x0004 (4)
wType : DNS_TYPE_A (1)
version : 0x05 (5)
rank : DNS_RANK_ZONE (240)
flags : 0x0000 (0)
dwSerial : 0x0000ec29 (60457)
dwTtlSeconds : 0x00000384 (900)
dwReserved : 0x00000000 (0)
dwTimeStamp : 0x0037ceba (3657402)
data : union dnsRecordData(case 1)
ipv4 : 192.168.0.6
whenChanged: 20190922163055.0Z
uSNChanged: 803408
distinguishedName:
DC=@,DC=samdom.example.com,CN=MicrosoftDNS,DC=DomainDnsZones,DC=samdom,DC=example,DC=com
Webmin doesn't seem to have realised that 'idmap uid' is deprecated, so
I don't hold much hope for using it with Samba dns.
Rowland
More information about the samba
mailing list