[Samba] DNS Help Request

Thomas Cameron thomas.cameron at camerontech.com
Sat Sep 10 18:35:59 UTC 2022


On 9/9/22 18:20, Rob Campbell via samba wrote:
> nslookup 10.0.0.10
> 10.0.0.10.in-addr.arpa name = DC01.

This is wrong, as I understand it. You want reverse ip addresses to come 
back with the FQDN, I think.

Here's how my network responds with ip address lookups:

[thomas.cameron at case Desktop]$ host case
case.tc.camerontech.com has address 172.31.100.4
[thomas.cameron at case Desktop]$ host case.tc.camerontech.com
case.tc.camerontech.com has address 172.31.100.4
[thomas.cameron at case Desktop]$ host 172.31.100.4
4.100.31.172.in-addr.arpa domain name pointer case.tc.camerontech.com.
[thomas.cameron at case Desktop]$ nslookup case
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	case.tc.camerontech.com
Address: 172.31.100.4

[thomas.cameron at case Desktop]$ nslookup case.tc.camerontech.com
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	case.tc.camerontech.com
Address: 172.31.100.4

[thomas.cameron at case Desktop]$ nslookup 172.31.100.4
4.100.31.172.in-addr.arpa	name = case.tc.camerontech.com.

Authoritative answers can be found from:

[thomas.cameron at case Desktop]$

I won't swear to it, but I am *pretty* sure that DNS is supposed to 
return the FQDN.

For reference, I run my own BIND server. I don't rely on Samba to do 
DNS, I have a separate DNS server in my environment. My zone files look 
like this (this is two lines, in case it gets trimmed):

[root at wintermute ~]# grep case /var/named/*
/var/named/100.31.172.in-addr.arpa:4	PTR	case.tc.camerontech.com.
/var/named/tc.camerontech.com:case	IN	1H	A	172.31.100.4

Hope this helps!
Thomas



More information about the samba mailing list