dns/show: sort records

v2: change Name to lower case and Type to upper case before comparing

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-10-24 17:12:53 +00:00
parent 356322bc94
commit 9da49f2d86
2 changed files with 49 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@ func (mgr *Manager) Show(ctx context.Context, names ...string) error {
return core.Wrap(err, "GetRecords")
}
SortRecords(recs)
return writeRecords(recs, os.Stdout)
}