No DNS record found for github.com

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com 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:

example

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

longer
example
here

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 (eg, 20.0.5): 27.1.4
Operating system and version (eg, Ubuntu 20.04): Raspberry Pi OS
Apache or nginx version (eg, Apache 2.4.25): nginx 1.14.2
PHP version (eg, 7.4): 8.2.13

The issue you are facing:
Can’t install or update apps.
OCP\Http\Client\LocalServerException: No DNS record found for github.com in nextcloud.log and

on the web page itself

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. No idea what introduced it, no idea how to replicate it

The output of your Nextcloud log in Admin > Logging:

OCP\Http\Client\LocalServerException: No DNS record found for github.com

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

PASTE HERE

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

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Server which runs nextcloud is completely fine, so is the DNS:

nslookup github.com

Non-authoritative answer:
Name:	github.com
Address: 140.82.121.3

Restarted PHP and nginx, made no difference. Updated plenty of other apps today already.

It has to do with DNS-Pinning.

It is a result of this “Fix”:

Pull request:

Commit:
https://github.com/nextcloud/server/commit/03f1f1ed2ea249a75bf9c51958ea088d748dafaa

DNS-Pinning and this complete field is not my strength, but now you know where it comes from and under what reference you can report this issue.

Keep in mind, that it could be possible that your DNS is not secure enough.

Much luck,
ernolf

Interesting. But the fact that nothing changed and

  • I could update/install apps before (same day) without any issues and
  • it is now (currently?) working again

makes me tend to say: the root cause was another issue. I‘ll see if the issue returns.