aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/libunbound/python/examples/dns-lookup.py
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-05-31 16:38:19 +0200
committerRiccardo Spagni <ric@spagni.net>2015-05-31 16:38:21 +0200
commit431397abfaf37b28c6981242d7fd59d8e520c8ec (patch)
treefa324d2f9f02668a6d56d2e4d195a59ab1d3710e /external/unbound/libunbound/python/examples/dns-lookup.py
parentMerge pull request #301 (diff)
parentupdate libunbound (diff)
downloadmonero-431397abfaf37b28c6981242d7fd59d8e520c8ec.tar.xz
Merge pull request #302
6a11907 update libunbound (Riccardo Spagni)
Diffstat (limited to 'external/unbound/libunbound/python/examples/dns-lookup.py')
-rw-r--r--external/unbound/libunbound/python/examples/dns-lookup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/external/unbound/libunbound/python/examples/dns-lookup.py b/external/unbound/libunbound/python/examples/dns-lookup.py
index b3f4008fd..a175dfb0e 100644
--- a/external/unbound/libunbound/python/examples/dns-lookup.py
+++ b/external/unbound/libunbound/python/examples/dns-lookup.py
@@ -32,6 +32,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()
@@ -39,6 +40,6 @@ ctx.resolvconf("/etc/resolv.conf")
status, result = ctx.resolve("www.nic.cz", unbound.RR_TYPE_A, unbound.RR_CLASS_IN)
if status == 0 and result.havedata:
- print("Result:", result.data.address_list)
+ print("Result:", sorted(result.data.address_list))
elif status != 0:
print("Error:", unbound.ub_strerror(status))