BIND error when i try to start it up

3 posts / 0 new
Last post
#1 Thu, 05/17/2018 - 11:02
leitzak

BIND error when i try to start it up

named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2018-05-17 11:49:26 -04; 3s ago Process: 31482 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF";

may 17 11:49:26 localhost.localdomain bash[31482]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0 may 17 11:49:26 localhost.localdomain bash[31482]: zone 0.in-addr.arpa/IN: loaded serial 0 may 17 11:49:26 localhost.localdomain bash[31482]: zone example.net/IN: NS 'ns1.example.net' has no address records (A or AAAA) may 17 11:49:26 localhost.localdomain bash[31482]: zone example.net/IN: NS 'ns2.example.net' has no address records (A or AAAA) may 17 11:49:26 localhost.localdomain bash[31482]: zone example.net/IN: not loaded due to errors. may 17 11:49:26 localhost.localdomain bash[31482]: _default/example.net/IN: bad zone may 17 11:49:26 localhost.localdomain systemd[1]: named.service: Control process exited, code=exited status=1 may 17 11:49:26 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS). may 17 11:49:26 localhost.localdomain systemd[1]: named.service: Unit entered failed state. may 17 11:49:26 localhost.localdomain systemd[1]: named.service: Failed with result 'exit-code'.

/var/named/example.net.hosts in webmin $ttl 38400 example.net. IN SOA example.net. leobruni17.gmail.com. ( 1526566500 10800 3600 604800 38400 ) example.net. IN NS example.net. example.net. IN A 192.160.0.105 example.net. IN NS ns1.example.net. example.net. IN NS ns2.example.net.

i've been having this error trying to setting up the BIND for a web local server.

Thu, 05/17/2018 - 11:24
noisemarine

You have created NS records for three nameservers: example.net, ns1.example.net, ns2.example.net.

You need to also make A records for ns1.example.net and ns2.example.net. Use the appropriate IP addresses.

example.net. IN NS example.net.
example.net. IN A 192.160.0.105
example.net. IN NS ns1.example.net.
example.net. IN NS ns2.example.net.
ns1.example.net. IN A 10.0.1.2
ns2.example.net. IN A 10.1.2.3
Thu, 05/17/2018 - 11:35
leitzak

thank you for the quick answer, its fixed now

Topic locked