'samba-tool dns serverinfo localhost' does not work and returns 'Memory allocation error'. Please note that 'samba-tool dns serverinfo 127.0.0.1' and 'samba-tool dns serverinfo $HOST' work fine.
Re-assigning to Kai as he is working on this one. Adding Jelmer and me to the CC list.
Still looking into this, as the patch proposed on samba-technical isn't optimal.
Created attachment 8199 [details] Untested patch Following Rowland Penny's note on the samba-technical mailing list, it's only 'localhost' that is broken.
(In reply to comment #3) > Created attachment 8199 [details] > Untested patch > > Following Rowland Penny's note on the samba-technical mailing list, it's only > 'localhost' that is broken. With this patch, 'samba-tool dns serverinfo localhost' works fine. Kai, thanks a lot for investigating!
It's a bit of a hack though, unfortunately. What about aliases for localhost, e.g. localhost-ip6?
Not more of a hack than the other version I sent to samba-technical recently. Even less, I'd argue.
Created attachment 8265 [details] Updated and tested patch as cherry-picked from master.
Comment on attachment 8265 [details] Updated and tested patch as cherry-picked from master. ACK
==> Karolin for review and picking to 4.0
Pushed to v4-0-test. Closing out bug report. Thanks!