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.
(adsbygoogle = window.adsbygoogle || []).push({});