Nextcloud and Talk Android apps make multiple DNS requests for each action

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 22.2.0
Operating system and version: docker official
Apache or nginx version: docker official
PHP version: docker official

The issue you are facing:
Our nextcloud instance is hosted on the internet, however it is accessed via the same domain used internally ( To address this, we had entered an NS record to point to so internal hosts will receive the internet address for this.
For simplicity if we move providers, the goal was to be able to update our internet DNS provider to a new address and internal resolution would be automatic.

What I’ve noticed for some time, is that nextcloud and talk apps make several DNS requests just opening for the first time, and since there is an inherit delay with resolving via this NS record, starting the apps takes a very long time.

The solution for now is just to use an A record to the current public IP, however not desirable.
I would expect that the apps perform similarly to the Browser page.

Is this the first time you’ve seen this error?: No, we’ve been seeing this issue for several months and only recently tried to go back to the NS record.

Steps to replicate it:

  1. Create NS record for nextcloud domain in local DNS server
  2. Open nextcloud address in standard webbrowser (
  3. Observe quick page loads on several apps, only limitation is web server performance
  4. Open nextcloud or Talk apps (on local Wifi) on android (iOS unknown) and notice each task, startup, switch to a new folder, open picture, takes at least 30 seconds
  5. review DNS server logs and see multiple DNS requests
  6. change NS record to A name
  7. See immediate improvement in Android app performance, however multiple DNS queries still exist

The output of your Nextcloud log in Admin > Logging: N/A

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

The output of your Apache/nginx/system log in /var/log/____: