Querying TXT records (DNS) from app engine python
Is there开发者_开发知识库 a way to query the DNS for a particular a txt record given the domain name from app engine .. I looked into pydns, but then "socket" is not available on app engine ..
You cannot use sockets from AppEngine; you can only use higher level interfaces (namely http/https through urllib
).
You could use an existing website / web service such as this (queried via urllib):
http://www.kloth.net/services/nslookup.php
But it's a bit of a kludge.
DNS lookups are available using App Engine Sockets, which is now in preview mode.. This also means that eventually it will be available for everyone.
However it's only available for paid apps...
精彩评论