when used with authentik locally DNS pinning needs to be turned off or else the host setting will not work this can be done with

'dns_pinning' => false,

in the nextcloud config.php file