Q. How do I check my domain zone file for error and validity the same under BIND DNS Server version 9?
A. You need to use named- checkzone command as zone file validity checking tool. It is useful for checking zone files before configuring them into a name server.
named-checkzone command syntax
named-checkzone {zonename} {filename}
Where,
- zonename : The domain name of the zone being checked.
- filename : The name of the zone file.
How do I check my zone file configuration for errors?
Use named-checkzone to check the zone files as follows:
named-checkzone nixcraft.com /var/named/zone.nixcraft.com
Output:
OK
If you see "OK" as result, the zone file is properly configured and you can restart bind name server.
Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!
- Email FAQ to a friend
- Printable version
- Rss Feed
- Last Updated: 9-21-07

{ 3 comments… read them below or add one }
how to configure bind in enterprise linux
Dear
Tech. Team in my LINUX server DNS server is not configure properly and the package bind*cachi* is not install,pls how to solve that problem,rewmaining theis all package install properly.Pls send me the reply asap.
Regards
Satish Patnaik
09985714525
Dear Satish,
You copy or download bind package from internet which are not install in your system