diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-02-15 20:56:38 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-02-21 18:24:30 +1100 |
commit | 61d4d7414585149ff0b703c139201d74c7800cd1 (patch) | |
tree | 577cfd279453135733749dd22bf7909284c8eac2 /source4/scripting/python | |
parent | b45d6a6d690b20e348336b9d5db678f3e574ad62 (diff) | |
download | samba-61d4d7414585149ff0b703c139201d74c7800cd1.tar.gz samba-61d4d7414585149ff0b703c139201d74c7800cd1.tar.bz2 samba-61d4d7414585149ff0b703c139201d74c7800cd1.zip |
samba-tool: dns: Fix the output display of DNS records
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/netcmd/dns.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/dns.py b/source4/scripting/python/samba/netcmd/dns.py index 31529c7ded..2f7773aca2 100644 --- a/source4/scripting/python/samba/netcmd/dns.py +++ b/source4/scripting/python/samba/netcmd/dns.py @@ -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)) |