Thamm, Russell
2019-Jul-18  07:05 UTC
[Samba] IPv6 Reverse Lookup Zone (Internal DNS) [SEC=UNCLASSIFIED]
UNCLASSIFIED
Hi,
I can successfully setup an IPv6 Reverse Lookup Zone (Samba 4.8.0 Internal DNS)
and add valid PTR entries using samba-tool and/or RSAT DNS.
However I cannot view the PTR records with samba-tool or RSAT.
[root at bilbo user]# samba-tool dns add localhost
4.e.7.c.9.3.0.b.4.7.6.0.7.8.d.f.ip6.arpa 5.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0 PTR
brutus.dev.local
Password for [administrator at DEV.LOCAL]:
Record added successfully
[root at bilbo user]# nslookup fd87:0674:b039:c7e4::55
Server:                 131.185.87.4
Address:              131.185.87.4#53
5.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.e.7.c.9.3.0.b.4.7.6.0.7.8.d.f.ip6.arpa        
name = brutus.dev.local.
[root at bilbo user]# samba-tool dns query localhost
4.e.7.c.9.3.0.b.4.7.6.0.7.8.d.f.ip6.arpa @ ALL
Password for [administrator at DEV.LOCAL]:
  Name=, Records=3, Children=0
    SOA: serial=11, refresh=900, retry=600, expire=86400, minttl=3600,
ns=bilbo.dev.local., email=hostmaster.dev.local. (flags=600000f0, serial=11,
ttl=3600)
    NS: jimbo.dev.local. (flags=600000f0, serial=1, ttl=3600)
    NS: bilbo.dev.local. (flags=600000f0, serial=3, ttl=900)
  Name=0, Records=0, Children=1
I can add and view non-functional PTR records with samba-tool.
[root at bilbo user]# samba-tool dns add localhost
4.e.7.c.9.3.0.b.4.7.6.0.7.8.d.f.ip6.arpa 0000:0000:0000:0050 PTR
sherri.dev.local
Password for [administrator at DEV.LOCAL]:
Record added successfully
[root at bilbo user]# nslookup fd87:0674:b039:c7e4::50
;; Got recursion not available from 131.185.87.4, trying next server
;; Got recursion not available from 131.185.87.4, trying next server
Server:                 131.185.87.123
Address:              131.185.87.123#53
** server can't find
0.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.e.7.c.9.3.0.b.4.7.6.0.7.8.d.f.ip6.arpa:
NXDOMAIN
[root at bilbo user]# samba-tool dns query localhost
4.e.7.c.9.3.0.b.4.7.6.0.7.8.d.f.ip6.arpa @ ALL
Password for [administrator at DEV.LOCAL]:
  Name=, Records=3, Children=0
    SOA: serial=12, refresh=900, retry=600, expire=86400, minttl=3600,
ns=bilbo.dev.local., email=hostmaster.dev.local. (flags=600000f0, serial=12,
ttl=3600)
    NS: jimbo.dev.local. (flags=600000f0, serial=1, ttl=3600)
    NS: bilbo.dev.local. (flags=600000f0, serial=3, ttl=900)
  Name=0, Records=0, Children=1
  Name=0000:0000:0000:0050, Records=1, Children=0
    PTR: sherri.dev.local (flags=f0, serial=12, ttl=900)
[root at bilbo user]#
The RSAT DNS tool shows a folder labelled 0 for the valid PTR record and the
"correct" data for the non-functional PTR record.
This problem has seemingly been reported before
https://lists.samba.org/archive/samba/2018-January/213103.html
Am I doing something wrong or is this a bug?
Cheers
Russell Thamm
IMPORTANT: This email remains the property of the Department of Defence and is
subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have
received this email in error, you are requested to contact the sender and delete
the email.
