CentOS 6 + BIND
Hi,
I'm trying to create a new DNS Server with CentOS 6 and Bind 9.7. The problem is that when I start the service 'named', I get this error. Can you tell me please why? I'm stucked. Quote:
Quote:
Quote:
|
Quote:
Code:
$TTL 1D |
Thanks. But I got this error:
Quote:
Quote:
I mean, from Windows I can ping it but doesn't work as DNS on my LAN. |
It's working because you've deleted the zones whose zone files could not be found.
Quote:
As I see the zone file of prueba.ec, you don't have any A records apart from the NS, so you there is no other host you can resolve. Also you deleted zones form the internal view that is for clients from your lan, so your clients now fall to the external view for these zones, with whatever it means. |
What I meant is that when I use this machine (CentOS one) as a DNS Server in the computers of my house, It doesn't work as a DNS. If I try to open Google on my browser, I can't.
If I config as primary DNS server my CentOS machine on my Windows XP, I can't access any website. Sorry my bad english, I'm from Argentina and we speak spanish. |
If you want other computers to use your dns server as a resolver, you should delete the listen options, or use
Code:
listen-on port 53 { any; }; Quote:
After restarting bind, if it still doesn't work, post your modified named.conf BTW I'm not also a native english speaker and your english are not worse than mine;) Regards |
It's working now but what do you mean by "allow recursion for my LAN"? I
Quote:
Thanks mate! |
Quote:
Regarding logging you can use something like the following: Code:
logging { If you think your question is answered, you can mark the thread as SOLVED using the thread tools on top of the page Regards |
I should add those lines to named.conf, right?
I'm going to mark it as solved but It'd great if you could answer me that. Thanks again!!! |
Quote:
You may also take a look here for more details. Regards |
I modified my named.conf and restarted the service.
It started OK but the problem now is that it's not writing the log. I checked /var/log/messages Quote:
EDIT: I tried with other directories and I got the same error. Thanks in advance. |
Hi,
Quote:
And you don't need t o create any log file. It will be created automatically. Regards |
I tried with differents directories and I got the same error:
Quote:
Quote:
|
No need to try different directories. You use one that fits your needs and just make it writable by the user named.
If the working directory is /var/named, it could be SELinux that denies writing on that directory. Better use a subdirectory like Code:
channel bindlog { Code:
ps -ef|grep named Regards |
Quote:
|
All times are GMT -5. The time now is 10:37 AM. |