[Samba] dhcp-dyndns.sh creates no PTR entry

Rowland Penny rpenny at samba.org
Fri Nov 12 13:38:17 UTC 2021

On Fri, 2021-11-12 at 13:55 +0100, Ingo Asche wrote:
> The script gets exactly what you described in your first answer. An
> IPv6 
> address is not shown in the syslog.

So the script just sends an IPv4 address, this means that the IPv6
address must be coming from this line:

PTR_REC=$($SAMBATOOL dns query ${Server} ${revzone} ${IP2add} PTR
$KTYPE 2>/dev/null | grep 'PTR:' | awk '{print $2}' | awk -F '.'
'{print $1}')

The samba-tool dns query must be returning an IPv4 AND an IPV6 address,
I think I need to use an array and use that to discard any IPv6

Now I know what the problem is, I can work on fixing it.


More information about the samba mailing list