mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
4bbc3ff037
This also avoids it from being installed if it's already present on the system.
8 lines
185 B
Python
Executable File
8 lines
185 B
Python
Executable File
#!/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
|