0

Per docs: https://developers.google.com/webmasters/control-crawl-index/docs/apis-google

Is there a way to do a DNS lookup within Google App Engine?

I've tried sockets (Python lookup hostname from IP with 1 second timeout), but GAE doesn't support it. I've also tried resolver, but I'm getting a timeout error, even though I set up timeout and lifetime (Python Asynchronous Reverse DNS Lookups).

Links included are examples of what I've tried, not the exact implementation (but pretty close to it!).

Community
  • 1
  • 1
pm3
  • 171
  • 1
  • 7

1 Answers1

0

If you have a paid app you have (restricted) access to sockets, so you can use the dnspython package.

Several related posts: [google-app-engine] dnspython

Community
  • 1
  • 1
Dan Cornilescu
  • 39,470
  • 12
  • 57
  • 97