dns/show: sort records

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-10-24 17:12:53 +00:00
parent 7dac96f474
commit 36347abaab
2 changed files with 43 additions and 0 deletions
+2
View File
@@ -21,6 +21,8 @@ func (mgr *Manager) Show(ctx context.Context, names ...string) error {
return core.Wrap(err, "GetRecords")
}
SortRecords(recs)
for _, rr := range recs {
_ = fmtRecord(&buf, rr)
_, _ = buf.WriteRune('\n')