![]() |
Bind problem. ** server can't find example.com: NXDOMAIN
hello
I'm trying to setup DNS server. But i'm getting this strange problem. normally nslookup and workin for other sites. problem only with my local setup. can't see what i'm doing wrong. i've had setted up DNS server before but had no problems. can't see any solution on google. So... centos 5.6 bind 9.7 (from repository) named.conf Code:
include "/etc/rndc.key";home.dev.zone Code:
$TTL 1dCode:
$TTL 1dCode:
127.0.0.1 test56.home.dev test56 localhost.localdomain localhostCode:
search home.devCode:
nslookup home.devCode:
dig home.dev any |
When you restart bind, look in your syslog to see if you are getting any warnings or errors. It has been my experience that Bind is really particular about the syntax and it can appear to restart without error, but there will be warnings listed that keep things from working properly. In your case, it looks like something is wrong that is keeping it from recognizing the zone as authoritative since with the dig command it is trying to go to the root servers for an RFC1918 zone, which it shouldn't.
In your configuration, there is one thing that looks a little odd to me. I am not an expert in Bind so it may be syntactically correct, but it is different than I am used to writing. The lines: Quote:
Code:
$ORIGIN .Code:
$ORIGIN home.dev. |
Quote:
My guess is, that this happens because it cannot match the internal view with your ip. You can remove the view "localhost_resolver" and in the internal zone add: Code:
...Code:
dig home.dev anyRegards |
| All times are GMT -5. The time now is 06:24 AM. |