git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Move dnspython to third_party.
[bbaumbach/samba-autobuild/.git]
/
third_party
/
dnspython
/
examples
/
mx.py
1
#!/usr/bin/env python
2
3
import dns.resolver
4
5
answers = dns.resolver.query('nominum.com', 'MX')
6
for rdata in answers:
7
print 'Host', rdata.exchange, 'has preference', rdata.preference