Fwd: Getting an error on a simple DNS configuration

Alan Clegg alan at clegg.com
Wed Jun 3 21:18:14 UTC 2015


And that needs to be a CIDR block:

>>         allow-recursion {207.151.36.0/24;};

On 6/3/15 5:17 PM, Alan Clegg wrote:
> 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/d5ab1b8e/attachment.bin>


More information about the bind-users mailing list