T
T
Twelfth Doctor2017-09-21 17:20:11
linux
Twelfth Doctor, 2017-09-21 17:20:11

Why does the Bind configuration error occur?

Hello. I'm trying to add a domain to the BIND DNS server. When I restart (rndc reload) I get an Unexpected token error

@ IN SOA ns1.hoster.pro. somemail.mail.com 1506003486 1440 36000 2592000 600

 @ IN A 192.168.1.1
        www IN A 192.168.1.1
 @ IN NS ns1.hoster.pro.
@ IN NS ns2.hoster.pro.
 @ IN MX mx1.hoster.pro.
            www IN MX mx1.hoster.pro.
@ IN MX ns2.hoster.pro.
            www IN MX ns2.hoster.pro.

In named.local.conf:
zone  "vinatest.ru"{
        type master;
        file "/etc/bind/vinatest.ru";
        };

Now there is an error
rndc: 'reload' failed: unexpected end of input

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2017-09-21
@POS_troi

named -g -u bind

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question