Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: Gabriel GHEORGHIU on March 18, 2021, 02:08:53 pm

Title: [SOLVED] Zentyal 7.0 - Temporary failure in name resolution
Post by: Gabriel GHEORGHIU on March 18, 2021, 02:08:53 pm
Hi everyone!

Fresh installation of Zentyal 7.0 for using as Authoritative DNS Server, so only few modules installed: Network, Firewall, DNS, Logs.

After first configuration and first reboot, as many of you, I did not able to do updates, even if the available updates were shown in Dashboard / Software Management.

Following @mscfw hint https://forum.zentyal.org/index.php/topic,35174.msg114308.html#msg114308 (https://forum.zentyal.org/index.php/topic,35174.msg114308.html#msg114308), I did the updates (Core to 7.0.3 and other Zentyal software).

After reboot, same issue: Temporary failure in name resolution

Does anybody know how to fix this, or we must to wait an update from Zentyal?

I have the same configuration with Zentyal 6.2 and it works like a charm.

Kind regards,
Gabriel

cc @webmaster
Title: Re: Zentyal 7.0 - Temporary failure in name resolution
Post by: Daniel Joven on March 19, 2021, 06:13:05 pm
Hi,

Do you get any error in the log files '/var/log/zentyal/zentyal.log' and '/var/log/syslog'?

When you lose the resolution, is the configuration file '/etc/resolv.conf' empty? If it is, did you try to restart the Network module? When the network module is restarted, it generate the content of the configuration file.

Also, I sent you a PM, please, as soon as you can read it.

Best regards, Daniel Joven.
Title: Re: Zentyal 7.0 - Temporary failure in name resolution
Post by: Gabriel GHEORGHIU on March 19, 2021, 10:28:45 pm
Hi Daniel,

I sent you a PM.

The file '/etc/resolv.conf' is not empty.

Kind regards,
Gabriel
Title: Re: Zentyal 7.0 - Temporary failure in name resolution
Post by: Daniel Joven on March 29, 2021, 12:49:54 pm
Hi Gabriel and thank you for your feedback,

I could reproduce the error and it seems to be related to DNSSEC. Please, add the following parameter below the option 'auth-nxdomain' in the stub '/usr/share/zentyal/stubs/dns/named.conf.options.mas':

Code: [Select]
dnssec-validation yes;

Then, restart the DNS module:

[code}
sudo zs dns restart
[/code]

Finally, check the DNS resolution.

Best regards, Daniel Joven.
Title: Re: Zentyal 7.0 - Temporary failure in name resolution
Post by: Gabriel GHEORGHIU on March 31, 2021, 09:36:48 am
Hi Daniel,

Sorry for my late feedback!
After I made the correction as you said, it works now.
Thank you for your help!

Kind regards,
Gabriel
Title: Re: Zentyal 7.0 - Temporary failure in name resolution
Post by: Deslack on March 31, 2021, 11:01:53 am
Hello,

I had the same problem as Gabriel, and got it fixed after applying the stub fix.

Think this should be included as an official patch.
Title: Re: Zentyal 7.0 - Temporary failure in name resolution
Post by: Gabriel GHEORGHIU on March 31, 2021, 11:15:27 am
Hi Daniel,

Solved but not quite solved.
After I made some updates that appeared after I modified the file as you said, after restarted the system, the file was re-written without the modification and I was forced to insert the parameter again.

Will be an update to fix this issue?

Moreover, in Dashboard, at Core version, is written 7.0.3 (available).
If I check from Software Management, the messages said that no updates are available.
If I check from CLI, same messages.

Code: [Select]
:~$ sudo apt-get update
Hit:1 http://ro.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://ro.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://ro.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://packages.zentyal.org/zentyal 7.0 InRelease
Hit:5 http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal InRelease
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
:~$
:~$ sudo apt-get install zentyal-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
zentyal-core is already the newest version (7.0.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
:~$
:~$ sudo apt-get install zentyal-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
zentyal-software is already the newest version (7.0.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
:~$

Thank you again for your future help/answers.
Kind regards,
Gabriel
Title: Re: Zentyal 7.0 - Temporary failure in name resolution
Post by: Daniel Joven on March 31, 2021, 05:58:10 pm
Hi guys,

There is an open issue in Github related to this DNS resolution issue, you can check it out here:

* https://github.com/zentyal/zentyal/issues/2026

Solved but not quite solved.
After I made some updates that appeared after I modified the file as you said, after restarted the system, the file was re-written without the modification and I was forced to insert the parameter again.

If you set that configuration parameter in the stub located at '/usr/share/zentyal/stubs/dns' and you lost it after restarting the DNS module, it is because you have another stub located at '/etc/zentyal/stubs/dns', and this directory has more priority than the other.

Moreover, in Dashboard, at Core version, is written 7.0.3 (available).
If I check from Software Management, the messages said that no updates are available.
If I check from CLI, same messages.

Code: [Select]
:~$ sudo apt-get update
Hit:1 http://ro.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://ro.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://ro.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://packages.zentyal.org/zentyal 7.0 InRelease
Hit:5 http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal InRelease
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
:~$
:~$ sudo apt-get install zentyal-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
zentyal-core is already the newest version (7.0.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
:~$
:~$ sudo apt-get install zentyal-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
zentyal-software is already the newest version (7.0.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
:~$

I will check it as soon as I can and I let you know.

Best regards, Daniel Joven.
Title: Re: [SOLVED] Zentyal 7.0 - Temporary failure in name resolution
Post by: Gabriel GHEORGHIU on April 05, 2021, 01:54:58 pm
Hi Daniel,

Hi guys,

There is an open issue in Github related to this DNS resolution issue, you can check it out here:

* https://github.com/zentyal/zentyal/issues/2026

The following commands do not work for me (even after rebooting the system):
Code: [Select]
sudo rm -v /var/cache/bind/managed-keys.bind*
sudo zs dns restart

---------------------------------------------------------------------------------------

If you set that configuration parameter in the stub located at '/usr/share/zentyal/stubs/dns' and you lost it after restarting the DNS module, it is because you have another stub located at '/etc/zentyal/stubs/dns', and this directory has more priority than the other.

/stubs/dns  - these directories do not exist in my installation:

Code: [Select]
# cd /etc/zentyal/
# dir
core.conf  firewall.conf  logs.conf     post-save  pre-save
dns.conf   hooks          network.conf  ppa.gpg    zentyal.conf
#

----------------------------------------------------------------------

Quote
Moreover, in Dashboard, at Core version, is written 7.0.3 (available).

(available) disappeared. By the system itself, i think. ;D

---------------------------------------------------------------------

For now, I will stay with your solution.

Kind regards,
Gabriel