1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

8 lines
185 B
Python
Raw Normal View History

#!/usr/bin/env python
import dns.resolver
answers = dns.resolver.query('nominum.com', 'MX')
for rdata in answers:
print 'Host', rdata.exchange, 'has preference', rdata.preference