This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
Installation and Upgrades / Zentyal 6.1 DNS module issue - manual adding DNS record doesn't work
« on: November 24, 2019, 12:10:17 pm »
Freshly installed Zentyal 6.1 - manually added DNS records are not applied to zone config, it seems that nsupdate is not executed. Not sure how it's possible, but I see different content of DNS.pm on disk(and in zentyal-dns package) to what exists on github.
root@ad01:~# diff -u DNS.pm /usr/share/perl5/EBox/DNS.pm
--- DNS.pm 2019-11-24 21:41:33.886964519 +1100
+++ /usr/share/perl5/EBox/DNS.pm 2019-10-29 10:02:00.000000000 +1100
@@ -714,12 +714,6 @@
"dns/named.conf.options.mas",
\@array);
- # Delete the already removed RR from dynamic and dlz zones
- $self->_removeDeletedRR();
-
- # Delete files from no longer used domains
- $self->_removeDomainsFiles();
-
# Hash to store the keys indexed by name, storing the secret
my %keys = ();
my @domainData = ();
@@ -759,6 +753,12 @@
}
}
+ # Delete the already removed RR from dynamic and dlz zones
+ $self->_removeDeletedRR();
+
+ # Delete files from no longer used domains
+ $self->_removeDomainsFiles();
+
my @inaddrs;
my $generateReverseZones = EBox::Config::boolean('generate_reverse_zones');
if ($generateReverseZones) {
@@ -965,7 +965,6 @@
}
}
foreach my $cmd (@{$self->{nsupdateCmds}}) {
- EBox::Sudo::root($cmd);
my ($filename) = $cmd =~ m:\s(.*?)$:;
# Remove the temporary file
unlink ($filename) if -f $filename;
root@ad01:~# diff -u DNS.pm /usr/share/perl5/EBox/DNS.pm
--- DNS.pm 2019-11-24 21:41:33.886964519 +1100
+++ /usr/share/perl5/EBox/DNS.pm 2019-10-29 10:02:00.000000000 +1100
@@ -714,12 +714,6 @@
"dns/named.conf.options.mas",
\@array);
- # Delete the already removed RR from dynamic and dlz zones
- $self->_removeDeletedRR();
-
- # Delete files from no longer used domains
- $self->_removeDomainsFiles();
-
# Hash to store the keys indexed by name, storing the secret
my %keys = ();
my @domainData = ();
@@ -759,6 +753,12 @@
}
}
+ # Delete the already removed RR from dynamic and dlz zones
+ $self->_removeDeletedRR();
+
+ # Delete files from no longer used domains
+ $self->_removeDomainsFiles();
+
my @inaddrs;
my $generateReverseZones = EBox::Config::boolean('generate_reverse_zones');
if ($generateReverseZones) {
@@ -965,7 +965,6 @@
}
}
foreach my $cmd (@{$self->{nsupdateCmds}}) {
- EBox::Sudo::root($cmd);
my ($filename) = $cmd =~ m:\s(.*?)$:;
# Remove the temporary file
unlink ($filename) if -f $filename;
Pages: [1]