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.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 7 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
hello sir
plz tell me
sir i have one computer and i have to configure dns server in linux
when i configure dns server in linux then get some error
so pz tell me how to configure dns server properly
Can we use named-checkzone for rev zone files, i.e. 100.100.100.rev?
Yes we can, named-checkzone is used for both zone file and reverse zone file. It does same checking like bind does when starting.
How Can I test the Reverse look up zone ??