Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/resolv.conf is hardcoded in Nextcloud 21 #277

Open
freebrowser1 opened this issue Feb 17, 2021 · 0 comments
Open

/etc/resolv.conf is hardcoded in Nextcloud 21 #277

freebrowser1 opened this issue Feb 17, 2021 · 0 comments

Comments

@freebrowser1
Copy link

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 ?

@kesselb kesselb transferred this issue from nextcloud/server Feb 17, 2021
@j-ed j-ed changed the title /etc/resolv.conv is hardcoded in Nextcloud 21 /etc/resolv.conf is hardcoded in Nextcloud 21 Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants