Re: Fwd: Getting an error on a simple DNS configuration

2015-06-03 Thread Alan Clegg
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@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@new-dns2 ~]#
>>  
>> [root@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@new-dns2 ~]#
>>
>>
>> ___
>> Please visit https://lists.isc.org/mailman/listinfo/bind-users to 
>> unsubscribe from this list
>>
>> bind-users mailing list
>> bind-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/bind-users
>>
> 



signature.asc
Description: OpenPGP digital signature
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Fwd: Getting an error on a simple DNS configuration

2015-06-03 Thread Alan Clegg
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@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@new-dns2 ~]#
>  
> [root@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@new-dns2 ~]#
> 
> 
> ___
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
> from this list
> 
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
> 



signature.asc
Description: OpenPGP digital signature
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Fwd: Getting an error on a simple DNS configuration

2015-06-03 Thread Samad Agha
I put the allow-recursion clause under my options, the #service named
restart failed. Where exactly should I place this allow-recursion clause?

[root@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@new-dns2 ~]#

[root@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@new-dns2 ~]#
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users