2

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 ..

2 Answers 2

3

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.

2
  • It might not be a good idea to abuse other services with automated requests without their permission. I did that at one point, and most services ended banning my app or using rate limits. Therefore it's best to run your own proxy / support services, like I currently do. Mar 17, 2013 at 15:04
  • I agree. You should always get permission if you're going to be putting a volume of requests through another site. Mar 18, 2013 at 9:06
0

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...

1
  • It doesn't support TXT lookups.
    – Kugutsumen
    Feb 5, 2016 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.