ref: 9b80d84d507d69c1074a34cddffca00d7b1ac414
parent: ebc8c29205756646a158d37e66a980f8c2e8dfd1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Dec 30 17:30:22 EST 2025
ndb/dns: make srv record ndb format consistent The value of srv= attribute is the hostname, but ndb/dns was serialising the host name as as target=hostname instead. Clarify that the srv= value is the hostname in ndb(6) and rename target= attribute to srv=.
--- a/sys/man/6/ndb
+++ b/sys/man/6/ndb
@@ -258,7 +258,7 @@
.BR pref .
.TP
.B srv
-service location (for DNS);
+host name of service location (for DNS);
also
.BR pri ,
.B weight
--- a/sys/src/cmd/ndb/dn.c
+++ b/sys/src/cmd/ndb/dn.c
@@ -1368,7 +1368,7 @@
break;
case Tsrv:
srv = rp->srv;
- fmtprint(&fstr, " pri=%ud weight=%ud port=%ud target=%s",
+ fmtprint(&fstr, " pri=%ud weight=%ud port=%ud srv=%s",
(srv? srv->pri: 0), (srv? srv->weight: 0),
rp->port, idnname(rp->host, buf, sizeof(buf)));
break;
--
⑨