DNS Queries from Python?
Steve Holden
sholden at holdenweb.com
Fri Sep 8 15:39:27 EDT 2000
More information about the Python-list mailing list
Fri Sep 8 15:39:27 EDT 2000
- Previous message (by thread): DNS Queries from Python?
- Next message (by thread): DNS Queries from Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I would like to be able to extract an MX record for the domain
of an address I have to send mail to. Contacting the right SMTP
host will allow me to avoid relaying errors, since some of the
mail to be sent must go on behalf of agents, whose email addresses
are outside our domain.
I realise I could do os.popen("nslookup ..."), and then hack around
the the ensuing command output, but something a little
more direct would be helpful. I don't see a dnslib module :-(
regards
Steve
--
Helping people meet their information needs with training and technology.
703 967 0887 sholden at bellatlantic.net http://www.holdenweb.com/
- Previous message (by thread): DNS Queries from Python?
- Next message (by thread): DNS Queries from Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list