"#service named restart" fails with a weird message

John Miller johnmill at brandeis.edu
Fri Jun 19 18:23:50 UTC 2015


Semicolons!  You need one for the second ip range in your list, and you
need one after the zone file for your localhost zone.  The error message
really does tell you what you need in this case ;-)  The config you pasted
only has nine lines, so I'm assuming that the last error really is on line
8/9 and something got lost in posting to the list.

John

On Fri, Jun 19, 2015 at 2:12 PM, Samad Agha <samad.agha2007 at gmail.com>
wrote:

> Hey Gurus,
> When I try to restart named, it fails with the following message:
>
> [root at new-dns2 ~]# service named restart
> Stopping named:                                            [  OK  ]
> Starting named:
> Error in named configuration:
> /etc/named.conf:3: missing ';' before '}'
> /etc/named.conf:11: missing ';' before '}'
>                                                            [FAILED]
> [root at new-dns2 ~]#
>
> And here is what my simple named.conf looks like:
>
> [root at new-dns2 ~]# cat /etc/named.conf
> options {
>          directory "/var/named";
>         allow-recursion {207.151.36.0/24; 206.117.117.0/24};
>  };
>
> zone "0.0.127.in-addr.arpa" {
>         type master;
>         file "db.127.0.0"
> };
> [root at new-dns2 ~]#
>
> What am I doing wrong? Can you please assist?
>
> Many thanks in advance and have a nice day.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20150619/2cf5e205/attachment-0001.html>


More information about the bind-users mailing list