# HG changeset patch # User Kim Alvefur # Date 1699050417 -3600 # Node ID 429be658c0bb3c3e617d519d181f9afa5c508bde # Parent 4c84cfb586c13cb6c1c3d7921231850b23b4be30 mod_dnsupdate: Support advertising explicit non-existence of service diff -r 4c84cfb586c1 -r 429be658c0bb mod_dnsupdate/mod_dnsupdate.lua --- a/mod_dnsupdate/mod_dnsupdate.lua Thu Nov 02 17:00:53 2023 +0000 +++ b/mod_dnsupdate/mod_dnsupdate.lua Fri Nov 03 23:26:57 2023 +0100 @@ -121,6 +121,7 @@ if not opts.remove then for port in ports do print(("add _%s._tcp.%s IN SRV 1 1 %d %s"):format(service, ihost, port, target)); end end + if ports:empty() then print(("add _%s._tcp.%s IN SRV 0 0 0 ."):format(service, ihost)); end end print("show");