mirror of
https://github.com/samba-team/samba.git
synced 2025-07-28 11:42:03 +03:00
samba-tool: dns: Fix the output display of DNS records
This commit is contained in:
@ -345,9 +345,10 @@ def print_dns_record(outf, rec):
|
||||
rec.data.NamePrimaryServer.str,
|
||||
rec.data.ZoneAdministratorEmail.str)
|
||||
elif rec.wType == dnsp.DNS_TYPE_MX:
|
||||
mesg = 'MX: %s' % (rec.data.str)
|
||||
mesg = 'MX: %s (%d)' % (rec.data.nameExchange.str, rec.data.wPreference)
|
||||
elif rec.wType == dnsp.DNS_TYPE_SRV:
|
||||
mesg = 'SRV: %s (%d)' % (rec.data.nameTarget.str, rec.data.wPort)
|
||||
mesg = 'SRV: %s (%d, %d, %d)' % (rec.data.nameTarget.str, rec.data.wPort,
|
||||
rec.data.wPriority, rec.data.wWeight)
|
||||
outf.write(' %s (flags=%x, serial=%d, ttl=%d)\n' % (
|
||||
mesg, rec.dwFlags, rec.dwSerial, rec.dwTtlSeconds))
|
||||
|
||||
|
Reference in New Issue
Block a user