[Eisfair] bind9 läuft nicht

Uwe Kunze u.kunze.sdh at t-online.de
So Jun 28 20:24:14 CEST 2020


>> Im Video ist zu sehen, dass es aktuell nicht möglich ist, bind9
>> lauffähig auf einem jungfräulichen eis-1 zu installieren.
>> Der Ordner /etc/bind ist und bleibt leer, es wird kein key erzeugt.
>>
>> Und wie ich schon schrieb, auch das Update eines laufenden bind9 endete
>> gestern in demselben Problem.
>
> erzeuge bitte ein trace sonst wird das so nichts


Ich weiß nicht, ob das bedeutsam ist, aber wenn ich
rndc-confgen -r /dev/urandom -a
ausführe, bekomme ich
rndc-confgen: The -r option has been deprecated


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

+ bind_root=/var/lib/named
++ sed s/bind_run_user=//g
++ grep bind_run_user= /etc/init.d/bind9
+ bind_run_user='"named"'
+ '[' -z '"named"' ']'
++ date +%s
+ bind9_zoneserial=1593367567
+ bind9_zonerefresh=6H
+ . /etc/config.d/base
++ HOSTNAME=eis
++ ETH_DRV_WAKE_ON_LAN=yes
++ IP_ETH_N=1
++ IP_ETH_1_NAME=net0
++ IP_ETH_1_IPADDR=192.168.10.134
++ IP_ETH_1_NETWORK=192.168.10.0
++ IP_ETH_1_NETMASK=255.255.255.0
++ IP_ETH_1_MACADDR=42:cf:8b:0d:03:39
++ IP_DEFAULT_GATEWAY=
++ IP_ROUTE_N=0
++ IP_ROUTE_1='192.168.7.0 255.255.255.0 192.168.6.99'
++ DOMAIN_NAME=hausnetz
++ DNS_SERVER=8.8.8.8
++ POWEROFF=yes
++ POWEROFF_SMP=no
++ POWEROFF_REALMODE=no
++ MODULE_N=0
++ MODULE_1_NAME=foo
++ MODULE_1_ACTIVE=no
++ MODULE_1_ACTION=forcedstart
++ MODULE_1_STRING=
+ bind9_hostname=eis
+ . /var/install/include/eistime
+++ /usr/bin/date +%Y-%m-%d
++ EISDATE=2020-06-28
+++ /usr/bin/date +%H:%M:%S
++ EISTIME=20:06:07
+ . /var/lib/named/etc/bind/binduser.conf
++ bind_run_user=named
+ '[' -f /etc/config.d/bind9 ']'
+ . /etc/config.d/bind9
++ START_BIND9=yes
++ BIND9_FORWARDER_N=1
++ BIND9_FORWARDER_1_IP=8.8.8.8
++ BIND9_FORWARDER_1_EDNS=yes
++ BIND9_FORWARDER_2_IP=8.8.4.4
++ BIND9_FORWARDER_2_EDNS=yes
++ BIND9_ALLOW_QUERY=any
++ BIND9_N=1
++ BIND9_1_NAME=hausnetz
++ BIND9_1_MASTER=yes
++ BIND9_1_NETWORK=192.168.10.0
++ BIND9_1_NETMASK=255.255.255.0
++ BIND9_1_MASTER_IP=192.168.10.134
++ BIND9_1_MASTER_NS=eis.hausnetz
++ BIND9_1_ALLOW_TRANSFER=any
++ BIND9_1_NS_N=0
++ BIND9_1_NS_1_NAME=dns2.hausnetz
++ BIND9_1_NS_1_IP=
++ BIND9_1_MX_N=0
++ BIND9_1_MX_1_NAME=mail.hausnetz
++ BIND9_1_MX_1_PRIORITY=10
++ BIND9_1_MX_2_NAME=mail-backup.hausnetz
++ BIND9_1_MX_2_PRIORITY=20
++ BIND9_1_HOST_N=1
++ BIND9_1_HOST_1_NAME=eis
++ BIND9_1_HOST_1_IP=192.168.10.134
++ BIND9_1_HOST_1_ALIAS=www1
++ BIND9_1_HOST_2_NAME=server2
++ BIND9_1_HOST_2_IP=192.168.2.11
++ BIND9_1_HOST_2_ALIAS='www2 ftp'
++ BIND9_2_NAME=foo2.local
++ BIND9_2_MASTER=no
++ BIND9_2_NETWORK=172.16.0.0
++ BIND9_2_NETMASK=255.255.0.0
++ BIND9_2_MASTER_IP=172.16.0.1
++ BIND9_2_MASTER_NS=
++ BIND9_2_ALLOW_TRANSFER=any
++ BIND9_2_NS_N=0
++ BIND9_2_NS_1_NAME=
++ BIND9_2_NS_1_IP=
++ BIND9_2_MX_N=0
++ BIND9_2_MX_1_NAME=
++ BIND9_2_MX_1_PRIORITY=
++ BIND9_2_HOST_N=0
++ BIND9_2_HOST_1_NAME=
++ BIND9_2_HOST_1_IP=
++ BIND9_2_HOST_1_ALIAS=
++ BIND9_PORT_53_ONLY=no
++ BIND9_BIND_IP_ADDRESS=
++ BIND9_DEBUG_LOGFILE=no
++ BIND9_START_OPTION_IPV4=no
+ '[' yes = yes ']'
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named/etc/bind
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named/etc/bind/master
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named/etc/bind/slave
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named/dev
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named/var/cache/bind
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named/var/run
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named/var/log
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /var/lib/named/usr/lib/engines
+ for i in ${bind_root} ${bind_root}/etc/bind 
${bind_root}/etc/bind/master ${bind_root}/etc/bind/slave 
${bind_root}/dev ${bind_root}/var
+ mkdir -p /etc/bind
+ '[' '!' -e /var/lib/named/dev/null ']'
+ '[' '!' -e /var/lib/named/dev/random ']'
+ '[' '!' -e /var/lib/named/dev/urandom ']'
+ '[' '!' -f /var/lib/named/var/log/named.log ']'
+ chmod 0644 /var/lib/named/var/log/named.log
+ '[' '!' -s /var/lib/named/etc/bind/rndc.key ']'
+ '[' '!' -e /etc/bind/rndc.key ']'
+ rndc-confgen -r /dev/urandom -a
+ chmod 0640 /etc/bind/rndc.key
chmod: cannot access '/etc/bind/rndc.key': No such file or directory
+ chown root:named /etc/bind/rndc.key
chown: cannot access '/etc/bind/rndc.key': No such file or directory
+ cp -f /etc/bind/rndc.key /var/lib/named/etc/bind/rndc.key
+ chown -R named:named /var/lib/named/var
+ chown -R named:named /var/lib/named/etc/bind
+ chmod 0640 /var/lib/named/etc/bind/rndc.key
chmod: cannot access '/var/lib/named/etc/bind/rndc.key': No such file or 
directory
+ write_named_file
+ rm -f /var/lib/named/etc/bind/master/10.168.192.in-addr.arpa.zone 
/var/lib/named/etc/bind/master/hausnetz.zone
+ rm -f '/var/lib/named/etc/bind/slave/*'
+ rm -f /var/lib/named/etc/bind/named.conf.local
+ rm -f /var/lib/named/etc/bind/include/named.local
+ touch /var/lib/named/etc/bind/named.conf.local
+ echo '# 
---------------------------------------------------------------------------'
+ echo '# /var/lib/named/etc/bind/named.conf.options - configuration for 
BIND 9'
+ echo '# Creation: 2020-06-28 20:06:07 by eisfair BIND9 setup'
+ echo '# 
---------------------------------------------------------------------------'
+ echo ''+ echo 'include "/etc/bind/rndc.key";'
+ echo ''
+ echo 'acl forwarder {'
+ idx=1
+ '[' 1 -le 1 ']'
+ eval 'ipaddr=$BIND9_FORWARDER_1_IP'
++ ipaddr=8.8.8.8
+ echo '  8.8.8.8;'
++ expr 1 + 1
+ idx=2
+ '[' 2 -le 1 ']'
+ echo '};'
+ echo ''
+ echo 'acl nslist {'
+ znr=1
+ s_found=
+ '[' 1 -le 1 ']'
+ eval 'ncnt=$BIND9_1_NS_N'
++ ncnt=0
+ '[' '!' -z 0 ']'
+ idx=1
+ '[' 1 -le 0 ']'
++ expr 1 + 1
+ znr=2
+ '[' 2 -le 1 ']'
+ '[' -z '' ']'
+ echo '  none; '
+ echo '};'
+ echo ''
+ echo 'acl internals {'
+ echo '  127.0.0.0/8;'
+ echo '  10.0.0.0/8;'
+ echo '  169.254.0.0/16;'
+ echo '  172.16.0.0/12;'
+ echo '  192.168.0.0/16;'
+ echo '};'
+ echo ''
+ echo 'options { '
+ echo '  directory "/var/cache/bind"; '
+ echo '  pid-file "/var/run/named.pid"; '
+ echo '  dump-file "/var/log/named_dump.db"; '
+ echo '  statistics-file "/var/log/named.stats"; '
+ '[' -n '' ']'
+ echo '  listen-on { any; }; '
+ echo '  listen-on-v6 { any; }; '
+ echo '  auth-nxdomain no;    # conform to RFC1035'
+ '[' no = yes ']'
+ '[' any = localnets ']'
+ echo '  allow-query { any; }; '
+ echo '  allow-recursion { localhost; localnets; internals; }; '
+ echo '  allow-notify { forwarder; localnets; }; '
+ echo '  sortlist { '
+ echo '    { localhost; localnets; }; '
+ echo '    { localnets; }; '
+ echo '  }; '
+ echo '  forwarders { '
+ idx=1
+ '[' 1 -le 1 ']'
+ eval 'ipaddr=$BIND9_FORWARDER_1_IP'
++ ipaddr=8.8.8.8
+ echo '    8.8.8.8;'
++ expr 1 + 1
+ idx=2
+ '[' 2 -le 1 ']'
+ echo '  };'
+ '[' 1 -gt 0 ']'
+ '[' 1 -gt 0 ']'
+ echo '  forward first; '
+ echo '}; '
+ echo ''
+ idx=1
+ '[' 1 -le 1 ']'
+ eval 'fwedns=$BIND9_FORWARDER_1_EDNS'
++ fwedns=yes
+ '[' yes = no ']'
++ expr 1 + 1
+ idx=2
+ echo ''
+ '[' 2 -le 1 ']'
+ echo 'logging { '
+ echo '  channel default_syslog { '
+ echo '          file "/var/log/named.log" versions 3 size 2M; '
+ echo '          print-time yes;     '
+ echo '          print-category yes; '
+ '[' no = yes ']'
+ echo '  }; '
+ echo '  # Log general name server errors to syslog. '
+ echo '  channel syslog_errors { '
+ echo '          syslog user; '
+ echo '          severity error; '
+ echo '  }; '
+ echo '}; '
+ echo ''
+ znr=1
+ '[' 1 -le 1 ']'
+ eval 'zonename=$BIND9_1_NAME'
++ zonename=hausnetz
+ eval 'zonemast=$BIND9_1_MASTER'
++ zonemast=yes
+ eval 'zonenetw=$BIND9_1_NETWORK'
++ zonenetw=192.168.10.0
+ eval 'zonemask=$BIND9_1_NETMASK'
++ zonemask=255.255.255.0
+ eval 'masterip=$BIND9_1_MASTER_IP'
++ masterip=192.168.10.134
+ '[' yes = yes ']'
+ zonetype=master
+ echo ''
+ echo 'zone "hausnetz" in {'
+ echo '  type master;'
+ echo '  file "/etc/bind/master/hausnetz.zone";'
+ '[' master = master ']'
+ echo '  allow-update { localhost; key dns_updater; }; '
+ eval 'allow_tr=$BIND9_1_ALLOW_TRANSFER'
++ allow_tr=any
+ '[' -z any ']'
+ echo '  allow-transfer { any; };'
+ echo '  notify yes;'
+ write_zone_file hausnetz
+ zone_name=hausnetz
+ eval 'dns_master=$BIND9_1_MASTER_NS'
++ dns_master=eis.hausnetz
+ '[' -z eis.hausnetz ']'
+ cat
+ eval 'ncnt=$BIND9_1_NS_N'
++ ncnt=0
+ '[' -n 0 ']'
+ xn=1
+ '[' 1 -le 0 ']'
+ eval 'ncnt=$BIND9_1_MX_N'
++ ncnt=0
+ '[' -n 0 ']'
+ xn=1
+ '[' 1 -le 0 ']'
+ eval 'ncnt=$BIND9_1_HOST_N'
++ ncnt=1
+ '[' -n 1 ']'
+ xn=1
+ '[' 1 -le 1 ']'
+ eval 'tempname=$BIND9_1_HOST_1_NAME'
++ tempname=eis
+ '[' -z eis ']'
++ expr 1 + 1
+ xn=2
+ '[' 2 -le 1 ']'
+ echo 'localhost      IN   A    127.0.0.1 '
+ xn=1
+ '[' 1 -le 1 ']'
+ eval 'tempname=$BIND9_1_HOST_1_NAME'
++ tempname=eis
+ eval 'tempipnr=$BIND9_1_HOST_1_IP'
++ tempipnr=192.168.10.134
+ '[' -n eis -a -n 192.168.10.134 ']'
+ grep -q '^eis ' /var/lib/named/etc/bind/master/hausnetz.zone
+ echo 'eis    IN   A    192.168.10.134 '
++ expr 1 + 1
+ xn=2
+ '[' 2 -le 1 ']'
+ xn=1
+ set -f
+ '[' 1 -le 1 ']'
+ eval 'tempalias=$BIND9_1_HOST_1_ALIAS'
++ tempalias=www1
+ '[' -n www1 ']'
+ eval 'tempname=$BIND9_1_HOST_1_NAME'
++ tempname=eis
+ '[' -n eis ']'
+ tempname=eis.
+ for s in $tempalias
+ grep -q '^www1 ' /var/lib/named/etc/bind/master/hausnetz.zone
+ echo 'www1    IN   CNAME eis.hausnetz. '
++ expr 1 + 1
+ xn=2
+ '[' 2 -le 1 ']'
+ set +f
+ eval 'tempipnr=$BIND9_1_MASTER_IP'
++ tempipnr=192.168.10.134
+ '[' -n 192.168.10.134 ']'
+ grep -q '^eis ' /var/lib/named/etc/bind/master/hausnetz.zone
+ chmod 0640 /var/lib/named/etc/bind/master/hausnetz.zone
+ chown named:named /var/lib/named/etc/bind/master/hausnetz.zone
+ echo '};'
++ /usr/local/bin/netcalc dnsrev 192.168.10.0 255.255.255.0
+ reversezone=10.168.192.in-addr.arpa
++ /usr/local/bin/netcalc dnsnet 192.168.10.0 255.255.255.0
+ forwardzone=192.168.10
+ grep -q 10.168.192.in-addr.arpa 
/var/lib/named/etc/bind/include/named.local
+ echo ''
+ echo 'zone "10.168.192.in-addr.arpa" in {'
+ echo '  type master;'
+ echo '  file "/etc/bind/master/10.168.192.in-addr.arpa.zone";'
+ '[' master = master ']'
+ echo '  allow-update { localhost; key dns_updater; }; '
+ eval 'allow_tr=$BIND9_1_ALLOW_TRANSFER'
++ allow_tr=any
+ '[' -z any ']'
+ echo '  allow-transfer { any; };'
+ echo '  notify yes;'
+ echo '};'
+ '[' master = master ']'
+ write_reverse_zone_file 10.168.192.in-addr.arpa 192.168.10 255.255.255.0
+ local zone_name=10.168.192.in-addr.arpa
+ local zone_netw=192.168.10
+ local zone_mask=255.255.255.0
+ local tempipnr=
+ local temprvip=
+ local tempname=
+ local write_header=0
+ '[' -f /var/lib/named/etc/bind/master/10.168.192.in-addr.arpa.zone ']'
+ write_header=1
+ '[' 1 = 1 ']'
+ eval 'dns_master=$BIND9_1_MASTER_NS'
++ dns_master=eis.hausnetz
+ '[' -z eis.hausnetz ']'
+ cat
+ eval 'ncnt=$BIND9_1_NS_N'
++ ncnt=0
+ '[' -n 0 ']'
+ xn=1
+ '[' 1 -le 0 ']'
+ '[' 1 = 1 ']'
+ eval 'tempipnr=$BIND9_1_MASTER_IP'
++ tempipnr=192.168.10.134
+ '[' -n 192.168.10.134 ']'
++ get_revip 192.168.10.134
++ ip_addr=192.168.10.134
++ revip=0
++ case "$zonemask" in
+++ sed -e 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\4/'
+++ echo 192.168.10.134
++ revip=134
++ echo 134
+ temprvip=134
+ echo '134   IN   PTR  eis.hausnetz. '
+ eval 'ncnt=$BIND9_1_HOST_N'
++ ncnt=1
+ '[' -n 1 ']'
+ xn=1
+ '[' 1 -le 1 ']'
+ eval 'tempname=$BIND9_1_HOST_1_NAME'
++ tempname=eis
+ '[' '!' eis = '*' ']'
+ '[' -z eis ']'
+ tempname=eis.hausnetz.
+ grep -q 'PTR  eis.hausnetz.' 
/var/lib/named/etc/bind/master/10.168.192.in-addr.arpa.zone
++ expr 1 + 1
+ xn=2
+ '[' 2 -le 1 ']'
+ append_DHCP_PTR_records hausnetz 10.168.192.in-addr.arpa
+ dhcp_zone_name=hausnetz
+ dhcp_rev_zone=10.168.192.in-addr.arpa
+ '[' -f /var/lib/named/etc/bind/master/dhcp.txt ']'
+ chmod 0640 /var/lib/named/etc/bind/master/10.168.192.in-addr.arpa.zone
+ chown named:named 
/var/lib/named/etc/bind/master/10.168.192.in-addr.arpa.zone
++ expr 1 + 1
+ znr=2
+ '[' 2 -le 1 ']'
+ chmod 0644 /var/lib/named/etc/bind/named.conf.options
+ chmod 0644 /var/lib/named/etc/bind/include/named.local
+ cd /etc/rc2.d
+ ln -sf ../init.d/bind9 S37bind9
+ exit 0


Mehr Informationen über die Mailingliste Eisfair