Error from dns_master_load & empty label
by Vinc450 from LinuxQuestions.org on (#5FRHM)
I don't know why but my zone would not work and have says that it could not load due to errors like my dns_master_load. It says it have an empty label.
PS : This is a school exercise. That is why certain names are a little bit werid.
Code from the command sudo service bind9 status in /etc/bind$ :
Mar 24 15:42:32 ns1h21 named[1361]: dns_master_load: /etc/bind/ns1h21.vincent.local:9: empty label
Mar 24 15:42:32 ns1h21 named[1361]: zone vincent.local/IN: loading from master file /etc/bind/ns1h21
Mar 24 15:42:32 ns1h21 named[1361]: zone vincent.local/IN: not loaded due to errors
This is my configuration from /etc/bind/named.conf.local:
zone "vincent.local"{
type master;
file "/etc/bind/ns1h21.vincent.local";
allow-transfer { 192.168.19.201 }
};
This is from my master file called ns1h21.vincent.local:
;
;
; Zone vincent.local
$ORIGIN .vincent.local
$TTL 14400
@ IN SOA nslinux.vincent.local. moi.vincent.local.(
2021032201 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS nslinux.vincent.local.
@ IN A 192.168.19.251
gate IN A 192.168.19.2
nslinux IN A 192.168.19.251
www IN A 192.168.19.111
smtp1 IN A 192.168.19.88
imap1 IN A 192.168.19.98
mail IN CNAME smtp1
miaow IN A 205.151.253.207
tigre IN CNAME exa3.cemti.ca
This is my configuration from nmaed.conf.options :
options {
directory "/var/cache/bind";
//forwarders {
// 192.168.19.251;
// };
dnssec-validation no;
auth-nxdomian no; #conform to RFC1035
# listen-on-v6 { any; };
allow-query { any; };
allow-recursion { localhost; localnets; };
allow-query-cache { localhost; localnets; };


PS : This is a school exercise. That is why certain names are a little bit werid.
Code from the command sudo service bind9 status in /etc/bind$ :
Mar 24 15:42:32 ns1h21 named[1361]: dns_master_load: /etc/bind/ns1h21.vincent.local:9: empty label
Mar 24 15:42:32 ns1h21 named[1361]: zone vincent.local/IN: loading from master file /etc/bind/ns1h21
Mar 24 15:42:32 ns1h21 named[1361]: zone vincent.local/IN: not loaded due to errors
This is my configuration from /etc/bind/named.conf.local:
zone "vincent.local"{
type master;
file "/etc/bind/ns1h21.vincent.local";
allow-transfer { 192.168.19.201 }
};
This is from my master file called ns1h21.vincent.local:
;
;
; Zone vincent.local
$ORIGIN .vincent.local
$TTL 14400
@ IN SOA nslinux.vincent.local. moi.vincent.local.(
2021032201 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS nslinux.vincent.local.
@ IN A 192.168.19.251
gate IN A 192.168.19.2
nslinux IN A 192.168.19.251
www IN A 192.168.19.111
smtp1 IN A 192.168.19.88
imap1 IN A 192.168.19.98
mail IN CNAME smtp1
miaow IN A 205.151.253.207
tigre IN CNAME exa3.cemti.ca
This is my configuration from nmaed.conf.options :
options {
directory "/var/cache/bind";
//forwarders {
// 192.168.19.251;
// };
dnssec-validation no;
auth-nxdomian no; #conform to RFC1035
# listen-on-v6 { any; };
allow-query { any; };
allow-recursion { localhost; localnets; };
allow-query-cache { localhost; localnets; };