From: Arne Fitzenreiter <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. f2d2c69787acc8ad3383d7482a15f0f8857f57ff
Date: Thu, 30 Jan 2020 12:24:57 +0000 [thread overview]
Message-ID: <487fgZ4QCjz2yXP@people01.haj.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 19668 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via f2d2c69787acc8ad3383d7482a15f0f8857f57ff (commit)
via c75fd8c8c5638581b180abbd68ce8fc168b3bd1e (commit)
via ccf83df93c8d7fedaaf8283880164ce12dd96bc3 (commit)
via e8adbea97beb1107a48b3f804143e11ebf6228bb (commit)
via 99cadb743af795134733ce2e229e53c3c0e7359b (commit)
via b76118c32ceb03b40945805e42bd7514f7007f1f (commit)
via 83165259b1db395e2bfecef0b584055583b7d99a (commit)
via e2338aa7ef6936044b6782fdbdd6abc12738395c (commit)
via 8729316513b7cad457906f399b1cd173a1045c55 (commit)
via 38f51465c98b29cbcd787b2cc9c060d617c66f6d (commit)
via 351ad526b23daa2e36a7e09c5c2c7e59d4a35259 (commit)
from 15e34194346674213e2cff30828f6f764311a685 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f2d2c69787acc8ad3383d7482a15f0f8857f57ff
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 30 12:24:24 2020 +0000
dns.cgi: increase timeout to 5s
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
commit c75fd8c8c5638581b180abbd68ce8fc168b3bd1e
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 30 12:22:37 2020 +0000
convert-dns-settings: add ppp/settings to list of converted files
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
commit ccf83df93c8d7fedaaf8283880164ce12dd96bc3
Merge: e8adbea97 83165259b
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Thu Jan 30 12:20:46 2020 +0000
Merge branch 'core141'
-----------------------------------------------------------------------
Summary of changes:
config/cfgroot/general-functions.pl | 5 ++++-
config/cfgroot/ids-functions.pl | 25 ++++---------------------
config/rootfiles/core/141/update.sh | 4 ++++
doc/language_issues.en | 1 +
doc/language_issues.es | 1 +
doc/language_issues.fr | 1 +
doc/language_issues.it | 1 +
doc/language_issues.nl | 1 +
doc/language_issues.pl | 1 +
doc/language_issues.ru | 1 +
doc/language_issues.tr | 1 +
doc/language_missings | 7 +++++++
html/cgi-bin/credits.cgi | 2 +-
html/cgi-bin/dns.cgi | 31 +++++++++++++++++--------------
langs/de/cgi-bin/de.pl | 1 +
langs/en/cgi-bin/en.pl | 2 +-
make.sh | 11 ++++++++---
src/scripts/convert-dns-settings | 7 ++++---
18 files changed, 59 insertions(+), 44 deletions(-)
Difference in files:
diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl
index 448f4c635..41a0eac2d 100644
--- a/config/cfgroot/general-functions.pl
+++ b/config/cfgroot/general-functions.pl
@@ -29,6 +29,9 @@ $General::adminmanualurl = 'http://wiki.ipfire.org';
require "${General::swroot}/network-functions.pl";
+# Function to remove duplicates from an array
+sub uniq { my %seen; grep !$seen{$_}++, @_ }
+
#
# log ("message") use default 'ipcop' tag
# log ("tag","message") use your tag
@@ -1255,7 +1258,7 @@ sub get_nameservers () {
}
# Return the array.
- return @nameservers;
+ return &uniq(@nameservers);
}
1;
diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl
index 3cfe837db..af8a927e0 100644
--- a/config/cfgroot/ids-functions.pl
+++ b/config/cfgroot/ids-functions.pl
@@ -712,32 +712,15 @@ sub generate_dns_servers_file() {
my @nameservers = &General::get_nameservers();
# Format dns servers declaration.
- my $line = "\"\[";
+ my $line = "";
# Check if the system has configured nameservers.
if (@nameservers) {
- # Loop through the array of nameservers.
- foreach my $server (@nameservers) {
- # Add the DNS server to the line.
- $line = "$line" . "$server";
-
- # Check if the current DNS server was the last in the array.
- if ($server ne $nameservers[-1]) {
- # Add "," for the next DNS server.
- $line = "$line" . "\,";
- }
- }
+ $line = join(",", @nameservers);
} else {
- # The responsible DNS servers on red are directly used, and because we are not able
- # to specify each single DNS server address here, we currently have to thread each
- # address which is not part of the HOME_NET as possible DNS server.
- $line = "$line" . "!\$HOME_NET";
-
+ $line = "\$EXTERNAL_NET";
}
- # Close the line...
- $line = "$line" . "\]\"";
-
# Open file to store the used DNS server addresses.
open(FILE, ">$dns_servers_file") or die "Could not open $dns_servers_file. $!\n";
@@ -749,7 +732,7 @@ sub generate_dns_servers_file() {
print FILE "#Autogenerated file. Any custom changes will be overwritten!\n";
# Print the generated DNS declaration to the file.
- print FILE "DNS_SERVERS:\t$line\n";
+ print FILE "DNS_SERVERS:\t\"[$line]\"\n";
# Close file handle.
close(FILE);
diff --git a/config/rootfiles/core/141/update.sh b/config/rootfiles/core/141/update.sh
index d990b44b7..51fe6ad9c 100644
--- a/config/rootfiles/core/141/update.sh
+++ b/config/rootfiles/core/141/update.sh
@@ -92,6 +92,10 @@ rm -fv /opt/pakfire/db/*/meta-elinks
rm -fv /opt/pakfire/db/rootfiles/python3
rm -fv /opt/pakfire/db/*/meta-python3
+# run pakfire update twice (first sometimes fail)
+/usr/local/bin/pakfire update
+/usr/local/bin/pakfire update
+
# Finish
/etc/init.d/fireinfo start
sendprofile
diff --git a/doc/language_issues.en b/doc/language_issues.en
index 4986317f8..10c2f87ce 100644
--- a/doc/language_issues.en
+++ b/doc/language_issues.en
@@ -621,6 +621,7 @@ WARNING: untranslated string: dns mode for qname minimisation = QNAME Minimisati
WARNING: untranslated string: dns no address given = No IP Address given.
WARNING: untranslated string: dns no tls hostname given = No TLS hostname given.
WARNING: untranslated string: dns proxy server = DNS Proxy Server
+WARNING: untranslated string: dns recursor mode = Recursor Mode
WARNING: untranslated string: dns title = Domain Name System
WARNING: untranslated string: dns tls hostname = TLS Hostname
WARNING: untranslated string: dns use isp assigned nameservers = Use ISP-assigned DNS servers
diff --git a/doc/language_issues.es b/doc/language_issues.es
index 4ea707702..b97d017c3 100644
--- a/doc/language_issues.es
+++ b/doc/language_issues.es
@@ -832,6 +832,7 @@ WARNING: untranslated string: dns isp nameservers and tls not allowed = ISP-assi
WARNING: untranslated string: dns mode for qname minimisation = QNAME Minimisation
WARNING: untranslated string: dns no address given = No IP Address given.
WARNING: untranslated string: dns no tls hostname given = No TLS hostname given.
+WARNING: untranslated string: dns recursor mode = Recursor Mode
WARNING: untranslated string: dns tls hostname = TLS Hostname
WARNING: untranslated string: dns use isp assigned nameservers = Use ISP-assigned DNS servers
WARNING: untranslated string: dns use protocol for dns queries = Protocol for DNS queries
diff --git a/doc/language_issues.fr b/doc/language_issues.fr
index f5f67243a..8e9d7babb 100644
--- a/doc/language_issues.fr
+++ b/doc/language_issues.fr
@@ -821,6 +821,7 @@ WARNING: untranslated string: dns isp nameservers and tls not allowed = ISP-assi
WARNING: untranslated string: dns mode for qname minimisation = QNAME Minimisation
WARNING: untranslated string: dns no address given = No IP Address given.
WARNING: untranslated string: dns no tls hostname given = No TLS hostname given.
+WARNING: untranslated string: dns recursor mode = Recursor Mode
WARNING: untranslated string: dns tls hostname = TLS Hostname
WARNING: untranslated string: dns use isp assigned nameservers = Use ISP-assigned DNS servers
WARNING: untranslated string: dns use protocol for dns queries = Protocol for DNS queries
diff --git a/doc/language_issues.it b/doc/language_issues.it
index b83cdde9a..a4ea5e618 100644
--- a/doc/language_issues.it
+++ b/doc/language_issues.it
@@ -855,6 +855,7 @@ WARNING: untranslated string: dns isp nameservers and tls not allowed = ISP-assi
WARNING: untranslated string: dns mode for qname minimisation = QNAME Minimisation
WARNING: untranslated string: dns no address given = No IP Address given.
WARNING: untranslated string: dns no tls hostname given = No TLS hostname given.
+WARNING: untranslated string: dns recursor mode = Recursor Mode
WARNING: untranslated string: dns tls hostname = TLS Hostname
WARNING: untranslated string: dns use isp assigned nameservers = Use ISP-assigned DNS servers
WARNING: untranslated string: dns use protocol for dns queries = Protocol for DNS queries
diff --git a/doc/language_issues.nl b/doc/language_issues.nl
index 003c9b6fe..ca1dee9b5 100644
--- a/doc/language_issues.nl
+++ b/doc/language_issues.nl
@@ -855,6 +855,7 @@ WARNING: untranslated string: dns isp nameservers and tls not allowed = ISP-assi
WARNING: untranslated string: dns mode for qname minimisation = QNAME Minimisation
WARNING: untranslated string: dns no address given = No IP Address given.
WARNING: untranslated string: dns no tls hostname given = No TLS hostname given.
+WARNING: untranslated string: dns recursor mode = Recursor Mode
WARNING: untranslated string: dns tls hostname = TLS Hostname
WARNING: untranslated string: dns use isp assigned nameservers = Use ISP-assigned DNS servers
WARNING: untranslated string: dns use protocol for dns queries = Protocol for DNS queries
diff --git a/doc/language_issues.pl b/doc/language_issues.pl
index 4ea707702..b97d017c3 100644
--- a/doc/language_issues.pl
+++ b/doc/language_issues.pl
@@ -832,6 +832,7 @@ WARNING: untranslated string: dns isp nameservers and tls not allowed = ISP-assi
WARNING: untranslated string: dns mode for qname minimisation = QNAME Minimisation
WARNING: untranslated string: dns no address given = No IP Address given.
WARNING: untranslated string: dns no tls hostname given = No TLS hostname given.
+WARNING: untranslated string: dns recursor mode = Recursor Mode
WARNING: untranslated string: dns tls hostname = TLS Hostname
WARNING: untranslated string: dns use isp assigned nameservers = Use ISP-assigned DNS servers
WARNING: untranslated string: dns use protocol for dns queries = Protocol for DNS queries
diff --git a/doc/language_issues.ru b/doc/language_issues.ru
index b783639a0..b76c83e56 100644
--- a/doc/language_issues.ru
+++ b/doc/language_issues.ru
@@ -836,6 +836,7 @@ WARNING: untranslated string: dns isp nameservers and tls not allowed = ISP-assi
WARNING: untranslated string: dns mode for qname minimisation = QNAME Minimisation
WARNING: untranslated string: dns no address given = No IP Address given.
WARNING: untranslated string: dns no tls hostname given = No TLS hostname given.
+WARNING: untranslated string: dns recursor mode = Recursor Mode
WARNING: untranslated string: dns tls hostname = TLS Hostname
WARNING: untranslated string: dns use isp assigned nameservers = Use ISP-assigned DNS servers
WARNING: untranslated string: dns use protocol for dns queries = Protocol for DNS queries
diff --git a/doc/language_issues.tr b/doc/language_issues.tr
index 08702c67d..ef28f6ac8 100644
--- a/doc/language_issues.tr
+++ b/doc/language_issues.tr
@@ -832,6 +832,7 @@ WARNING: untranslated string: dns isp nameservers and tls not allowed = ISP-assi
WARNING: untranslated string: dns mode for qname minimisation = QNAME Minimisation
WARNING: untranslated string: dns no address given = No IP Address given.
WARNING: untranslated string: dns no tls hostname given = No TLS hostname given.
+WARNING: untranslated string: dns recursor mode = Recursor Mode
WARNING: untranslated string: dns tls hostname = TLS Hostname
WARNING: untranslated string: dns use isp assigned nameservers = Use ISP-assigned DNS servers
WARNING: untranslated string: dns use protocol for dns queries = Protocol for DNS queries
diff --git a/doc/language_missings b/doc/language_missings
index 379eb9f61..40724a80b 100644
--- a/doc/language_missings
+++ b/doc/language_missings
@@ -263,6 +263,7 @@
< dns mode for qname minimisation
< dns no address given
< dns no tls hostname given
+< dns recursor mode
< dnssec aware
< dnssec disabled warning
< dnssec information
@@ -935,6 +936,7 @@
< dns mode for qname minimisation
< dns no address given
< dns no tls hostname given
+< dns recursor mode
< dns tls hostname
< dns use isp assigned nameservers
< dns use protocol for dns queries
@@ -1046,6 +1048,7 @@
< dns mode for qname minimisation
< dns no address given
< dns no tls hostname given
+< dns recursor mode
< dnssec disabled warning
< dns tls hostname
< dns use isp assigned nameservers
@@ -1389,6 +1392,7 @@
< dns mode for qname minimisation
< dns no address given
< dns no tls hostname given
+< dns recursor mode
< dnssec aware
< dnssec disabled warning
< dnssec information
@@ -1851,6 +1855,7 @@
< dns mode for qname minimisation
< dns no address given
< dns no tls hostname given
+< dns recursor mode
< dnssec aware
< dnssec disabled warning
< dnssec information
@@ -2684,6 +2689,7 @@
< dns mode for qname minimisation
< dns no address given
< dns no tls hostname given
+< dns recursor mode
< dnssec aware
< dnssec disabled warning
< dnssec information
@@ -3366,6 +3372,7 @@
< dns mode for qname minimisation
< dns no address given
< dns no tls hostname given
+< dns recursor mode
< dns tls hostname
< dns use isp assigned nameservers
< dns use protocol for dns queries
diff --git a/html/cgi-bin/credits.cgi b/html/cgi-bin/credits.cgi
index 6eb7f1e49..f4f22e1a2 100644
--- a/html/cgi-bin/credits.cgi
+++ b/html/cgi-bin/credits.cgi
@@ -85,8 +85,8 @@ Ersan Yildirim,
Stephan Feddersen,
Joern-Ingo Weigert,
Alexander Koch,
-Wolfgang Apolinarski,
Stéphane Pautrel,
+Wolfgang Apolinarski,
Alfred Haas,
Lars Schuhmacher,
Rene Zingel,
diff --git a/html/cgi-bin/dns.cgi b/html/cgi-bin/dns.cgi
index d4278d8b9..4f3418a70 100755
--- a/html/cgi-bin/dns.cgi
+++ b/html/cgi-bin/dns.cgi
@@ -418,15 +418,23 @@ END
sub show_nameservers () {
&Header::openbox('100%', 'center', "$Lang::tr{'dns title'}");
+ # Determine if we are running in recursor mode
+ my $recursor = 0;
+ my $unbound_forward = qx(unbound-control forward);
+ if ($unbound_forward =~ m/^off/) {
+ $recursor = 1;
+ }
+
my $dns_status_string;
my $dns_status_col;
my $dns_working;
+
# Test if the DNS system is working.
#
# Simple send a request to unbound and check if it can resolve the
# DNS test server.
- my $dns_status_ret = &check_nameserver("127.0.0.1", "$dns_test_server", "UDP");
+ my $dns_status_ret = &check_nameserver("127.0.0.1", "$dns_test_server", "UDP", undef, "+timeout=5", "+retry=0");
if ($dns_status_ret eq "2") {
$dns_status_string = "$Lang::tr{'working'}";
@@ -437,6 +445,10 @@ sub show_nameservers () {
$dns_status_col = "${Header::colourred}";
}
+ if ($recursor) {
+ $dns_status_string .= " (" . $Lang::tr{'dns recursor mode'} . ")";
+ }
+
print <<END;
<table width='100%'>
<tr>
@@ -705,25 +717,16 @@ print <<END;
</table>
END
;
-
} else {
-print <<END;
+ print <<END;
<table width="100%">
- <tr>
- <td colspan="6" align="center">
- <br>$Lang::tr{'dns recursor mode'}<br>
- </td>
- </tr>
-
<tr>
<form method="post" action="$ENV{'SCRIPT_NAME'}">
<td colspan="6" align="right"><input type="submit" name="SERVERS" value="$Lang::tr{'add'}"></td>
</form>
</tr>
</table>
-
END
-;
}
&Header::closebox();
@@ -838,8 +841,8 @@ sub red_is_active () {
}
# Function to check a given nameserver against propper work.
-sub check_nameserver($$$$) {
- my ($nameserver, $record, $proto, $tls_hostname) = @_;
+sub check_nameserver($$$$$) {
+ my ($nameserver, $record, $proto, $tls_hostname, @args) = @_;
# Check if the system is online.
unless (&red_is_active()) {
@@ -848,7 +851,7 @@ sub check_nameserver($$$$) {
# Default values.
my @command = ("kdig", "+dnssec",
- "+bufsize=1232");
+ "+bufsize=1232", @args);
# Handle different protols.
if ($proto eq "TCP") {
diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl
index 2cd2e24a2..80579e7cc 100644
--- a/langs/de/cgi-bin/de.pl
+++ b/langs/de/cgi-bin/de.pl
@@ -825,6 +825,7 @@
'dns new 0' => 'Neue <strong>primäre</strong> DNS Server IP:',
'dns new 1' => 'Neue <strong>sekundäre</strong> DNS Server IP:',
'dns proxy server' => 'DNS-Proxyserver',
+'dns recursor mode' => 'Recursor-Modus',
'dns saved' => 'Erfolgreich gespeichert!',
'dns saved txt' => 'Die beiden eingegebenen DNS-Server-Adressen wurde erfolgreich gespeichert.<br/>Um die Änderung wirksam zu machen, müssen Sie neustarten oder wiederverbinden!',
'dns server' => 'DNS Server',
diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
index dfc7e013f..1f81108f1 100644
--- a/langs/en/cgi-bin/en.pl
+++ b/langs/en/cgi-bin/en.pl
@@ -862,7 +862,7 @@
'dns no address given' => 'No IP Address given.',
'dns no tls hostname given' => 'No TLS hostname given.',
'dns proxy server' => 'DNS Proxy Server',
-'dns recursor mode' => 'Running in Recursor mode.',
+'dns recursor mode' => 'Recursor Mode',
'dns saved' => 'Successfully saved!',
'dns saved txt' => 'The two entered DNS server addresses have been saved successfully.<br />You have to reboot or reconnect that the changes have effect!',
'dns server' => 'DNS Server',
diff --git a/make.sh b/make.sh
index 452284c16..02043cf69 100755
--- a/make.sh
+++ b/make.sh
@@ -897,9 +897,14 @@ update_contributors() {
local contributors="$(contributors | paste -sd , - | sed -e "s/,/&\\\\n/g")"
# Edit contributors into credits.cgi
- awk -i inplace \
- "/<!-- CONTRIBUTORS -->/{ p=1; print; printf \"${contributors}\n\"}/<!-- END -->/{ p=0 } !p" \
- "${BASEDIR}/html/cgi-bin/credits.cgi"
+ local tmp="$(mktemp)"
+
+ awk "/<!-- CONTRIBUTORS -->/{ p=1; print; printf \"${contributors}\n\"}/<!-- END -->/{ p=0 } !p" \
+ < "${BASEDIR}/html/cgi-bin/credits.cgi" > "${tmp}"
+
+ # Copy back modified content
+ cat "${tmp}" > "${BASEDIR}/html/cgi-bin/credits.cgi"
+ unlink "${tmp}"
print_status DONE
return 0
diff --git a/src/scripts/convert-dns-settings b/src/scripts/convert-dns-settings
index 23d76ec88..945a15ef0 100755
--- a/src/scripts/convert-dns-settings
+++ b/src/scripts/convert-dns-settings
@@ -22,6 +22,7 @@
FILES=(
/var/ipfire/ethernet/settings
/var/ipfire/dns/settings
+ /var/ipfire/ppp/settings
/var/ipfire/ppp/settings-*
)
@@ -58,9 +59,9 @@ main() {
# Empty the old settings file
: > /var/ipfire/dns/settings
- # Disable using ISP name servers when we already have some configured
- if [ ${i} -gt 3 ]; then
- echo "USE_ISP_NAMESERVERS=off" \
+ # Enable using ISP name servers when no servers are configured
+ if [ ${i} -eq 3 ]; then
+ echo "USE_ISP_NAMESERVERS=on" \
>> /var/ipfire/dns/settings
fi
fi
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2020-01-30 12:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=487fgZ4QCjz2yXP@people01.haj.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox