%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/doc/python3-dnspython/examples/
Upload File :
Create Path :
Current File : //usr/share/doc/python3-dnspython/examples/mx.py

#!/usr/bin/env python3

import dns.resolver

answers = dns.resolver.resolve('nominum.com', 'MX')
for rdata in answers:
    print('Host', rdata.exchange, 'has preference', rdata.preference)

Zerion Mini Shell 1.0