serverinfo icon indicating copy to clipboard operation
serverinfo copied to clipboard

/etc/resolv.conf is hardcoded in Nextcloud 21

Open freebrowser1 opened this issue 4 years ago • 0 comments

I am using Nextcloud 21 RC 2 on PHP 8.0.2 and Apache 2.4.46 on a prooted environment. The problem is that in that environment /etc/resolv.conf does not exist, but it does exist in another folder.

In the file DefaultOS.php there is this path hardcoded:

	$dns = shell_exec('cat /etc/resolv.conf |grep -i \'^nameserver\'|head -n1|cut -d \' \' -f2');

Can this path (or even the command) be made configurable in the php config settings and only if not configured, set to this default value ?

freebrowser1 avatar Feb 17 '21 09:02 freebrowser1