Using Debian Jessie.
I try to configue my bind zone, but I'm getting errors when I check it with named-checkzone
. One error is "no current owner name".
root@host:/etc# named-checkzone test /etc/bind/db.test.domain
/etc/bind/db.test.domain:2: no current owner name
/etc/bind/db.test.domain:4: no TTL specified; zone rejected
/etc/bind/db.test.domain:6: no TTL specified; zone rejected
/etc/bind/db.test.domain:7: no TTL specified; zone rejected
/etc/bind/db.test.domain:9: no TTL specified; zone rejected
/etc/bind/db.test.domain:10: no TTL specified; zone rejected
/etc/bind/db.test.domain:13: no TTL specified; zone rejected
/etc/bind/db.test.domain:14: no TTL specified; zone rejected
/etc/bind/db.test.domain:15: no TTL specified; zone rejected
/etc/bind/db.test.domain:16: no TTL specified; zone rejected
zone test/IN: loading from master file /etc/bind/db.test.domain failed: no owner
zone test/IN: not loaded due to errors.
Here is the /etc/bind/db.test.domain file:
IN NS ns
_spf TXT "v=spf1 ip4:111.222.133.0/22 mx exists:%{1}.%{i}._spf ?all"
@ MX 50 mail.domain.com.
@ TXT "v=spf1 redirect=_spf.sub.domain.com"
mail.domain.com A 111.222.133.144
mail.domain.com AAAA 2000:888:8888:11::199
@ A 111.222.133.155
@ AAAA 2000:777:7777:11::199
www A 111.222.133.155
www AAAA 2000:777:7777:11::199
How can I fix it?
Add first line in zone file.
Add SOA record