mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 16:32:59 +02:00
unbound: skip empty domains at local-data import
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
551bc48940
commit
5947f92a5a
@@ -78,10 +78,11 @@ write_hosts_conf() {
|
||||
while IFS="," read -r enabled address hostname domainname generateptr; do
|
||||
[ "${enabled}" = "on" ] || continue
|
||||
|
||||
echo "${domainname}"
|
||||
done < /var/ipfire/main/hosts | sort -u | while read -r domainname; do
|
||||
# Skip empty domainnames
|
||||
[ "${domainname}" = "" ] && continue
|
||||
|
||||
echo "local-zone: ${domainname} typetransparent"
|
||||
done
|
||||
done < /var/ipfire/main/hosts | sort -u
|
||||
|
||||
# Add all hosts
|
||||
while IFS="," read -r enabled address hostname domainname generateptr; do
|
||||
|
||||
Reference in New Issue
Block a user