S
S
Sane Barbarian2016-11-16 23:11:01
Domain Name System
Sane Barbarian, 2016-11-16 23:11:01

What is wrong in the bind settings? Or why such an error?

Can't set up a local bind server, please take a look
at the contents of named.conf.local


zone "jaggernozone.com" {
type master;
notify no;
file "/etc/bind/db.jaggernozone.com";
};
zone "0.101.4.in-addr.arpa" {
type master;
file "/etc/bind/0.101.4.in-addr.arpa.zone";
};

The contents of named.conf.options

options {
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
listen-on {4.101.0.200;
127.0.0.1;
};
listen-on-v6 { none; };
};

Content of db.jaggernozone.com

$TTL 30
$ORIGIN jaggernozone.com.
@ IN SOA debian-test.jaggernozone.com. root.jaggernozone.com. (
20161115 ; Serial
1d ; Refresh
1h ; Retry
1w ; Expire
1h); Negative Cache TTL
;
@ IN NS debian-test.jaggernozone.com.
@ IN A 4.101.0.200

The named-checkconf -z command produces the following

zone jaggernozone.com/IN: NS 'debian-test.jaggernozone.com' has no address records (A or AAAA)
zone jaggernozone.com/IN: not loaded due to errors.
_default/jaggernozone.com/IN: bad zone
/etc/bind/0.101.4.in-addr.arpa.zone:4: SOA record not at top of zone (0.101.4.in-addr.arpa.zone.0.101 .4.in-addr.arpa)
zone 0.101.4.in-addr.arpa/IN: loading from master file /etc/bind/0.101.4.in-addr.arpa.zone failed: not at top of zone
zone 0.101.4.in-addr.arpa/IN: not loaded due to errors.
_default/0.101.4.in-addr.arpa/IN: not at top of zone
zone localhost/IN: loaded serial 2
zone 127.in-addr.arpa/IN: loaded serial 1
zone 0.in-addr.arpa/ IN: loaded serial 1
zone 255.in-addr.arpa/IN: loaded serial 1

But the A address is registered!... I would be grateful for the hints
P. S Already changed @ IN A 4.101.0.200 to debian.jaggernozone.com IN A 4.101.0.200 ;
PPS Content 0.101.4.in-addr.arpa.zone

$TTL 30
$ORIGIN 0.101.4.in-addr.arpa.zone
@ IN SOA debian-test.jaggernozone.com. root.jaggernozone.com. (
20161115 ; Serial
1d ; Refresh
1h ; Retry
1w ; Expire
1h); Negative Cache TTL
;
@ IN NS debian-test.jaggernozone.com.
10 IN PTR debian-test.jaggernozone.com.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-11-17
@SaneBarbarian

First error:
Need A record for NS server:
debian-test IN A IP_ADDRESS
or
debian-test.jaggernozone.com. IN A IP_ADDRESS
Attention to the point.
Next:
Apparently, there is something higher than the SOA record in the zone file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question