source:
vendor/3.6.0/lib/dnspython/examples/mx.py
| Last change on this file was 740, checked in by , 13 years ago | |
|---|---|
| File size: 192 bytes | |
| Line | |
|---|---|
| 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 |
Note:
See TracBrowser
for help on using the repository browser.
