Fwd: Getting an error on a simple DNS configuration
Alan Clegg
alan at clegg.com
Wed Jun 3 21:17:41 UTC 2015
allow-recursion { ... };
not
allow-recursion ( ... );
And you need a ; at the end of your list:
> allow-recursion {207.151.36.0;};
On 6/3/15 5:14 PM, Samad Agha wrote:
> I put the allow-recursion clause under my options, the #service named
> restart failed. Where exactly should I place this allow-recursion clause?
>
> [root at new-dns2 ~]# cat /etc/named.conf
> options {
> directory "/var/named";
> allow-recursion (207.151.36.0);
> };
>
> zone "0.0.127.in-addr.arpa" {
> type master;
> file "db.127.0.0";
> };
> [root at new-dns2 ~]#
>
> [root at new-dns2 ~]# service named restart
> Stopping named: . [ OK ]
> Starting named:
> Error in named configuration:
> /etc/named.conf:3: '{' expected near '(207.151.36.0)'
> [FAILED]
> [root at new-dns2 ~]#
>
>
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 561 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20150603/e1508949/attachment.bin>
More information about the bind-users
mailing list