App Engine Flexible DNS client settings

41 views
Skip to first unread message

Mark Drummond

unread,
Oct 30, 2018, 9:06:44 AM10/30/18
to Google App Engine
Is it possible to change the DNS client settings for an App Engine Flexible deployed (Python/Django in this case) app? I'd like the app in question to reference our internal DNS servers, available to the app over a Cloud VPN connection.

diogoa...@google.com

unread,
Oct 30, 2018, 1:36:21 PM10/30/18
to Google App Engine
A possible solution you can try is to update resolv.conf file. However, as in App Engine, the local filesystem that your application is deployed to is not writable, you would not be able to edit. 

You are more likely to get some results on that by using App Engine Flexible Environment with the custom runtime. The custom runtime environment runs as a docker container and docker tries to make a binding link to a system resolv.conf file.

You can also try to override DNS server used as shown here [3] using dns.resolver.

Note that the suggestions here have not been tested on my end as it is a customization of your environment, so I recommend that you consider it first in a test environment.

Mark Drummond

unread,
Oct 31, 2018, 8:55:03 AM10/31/18
to Google App Engine
Thanks, this is helpful. I'll investigate these options.
Reply all
Reply to author
Forward
0 new messages