Network
The named-checkzone command
Validates a DNS zone file: checks that it has SOA and NS and that the syntax is correct.
Syntax
named-checkzone <zona> <fichero>Copy-ready examples
$ named-checkzone aula.local /etc/bind/db.aula.localValidate the zoneYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Every zone needs an SOA record and at least one NS.
Related commands
FAQ
What if the SOA is missing?
named-checkzone errors out: the zone would not load in the server.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course