diff options
author | des <des@FreeBSD.org> | 2015-09-17 16:10:11 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2015-09-17 16:10:11 +0000 |
commit | c5050a3b9f622f6308084b1e253919467f3c6ff0 (patch) | |
tree | 9ba31f6272e0b39184eba0b36bb65cda61f09b93 /contrib/unbound/libunbound/python/examples/ns-lookup.py | |
parent | 5ef9f703be928fbaab82c07bd99fa37838acd02f (diff) | |
parent | 0b3e2c01ad6e393f14541f9b977e89fdb993a100 (diff) | |
download | FreeBSD-src-c5050a3b9f622f6308084b1e253919467f3c6ff0.zip FreeBSD-src-c5050a3b9f622f6308084b1e253919467f3c6ff0.tar.gz |
Upgrade to Unbound 1.5.4.
Diffstat (limited to 'contrib/unbound/libunbound/python/examples/ns-lookup.py')
-rw-r--r-- | contrib/unbound/libunbound/python/examples/ns-lookup.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/unbound/libunbound/python/examples/ns-lookup.py b/contrib/unbound/libunbound/python/examples/ns-lookup.py index bcd51de..49f5672 100644 --- a/contrib/unbound/libunbound/python/examples/ns-lookup.py +++ b/contrib/unbound/libunbound/python/examples/ns-lookup.py @@ -33,6 +33,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ''' +from __future__ import print_function import unbound ctx = unbound.ub_ctx() @@ -42,6 +43,6 @@ status, result = ctx.resolve("vutbr.cz", unbound.RR_TYPE_NS, unbound.RR_CLASS_IN if status == 0 and result.havedata: print("Result:") print(" raw data:", result.data) - for k in result.data.domain_list: + for k in sorted(result.data.domain_list): print(" host: %s" % k) |