How to check binds zone files and configuration for your VPS

After creating DNS zone files and configuring them, it’s important to check if the syntax in the zone files is correct. Incorrect syntax may cause the files not to work at all.

1. To check the configuration files run the following command:


To check a DNS zone files we can use named-checkzone command:

named-checkzone /var/named/

zone loaded serial 1

For the reverse zone file check

named-checkzone /var/named/

zone loaded serial 2

2. Restart bind

service named restart

3. You can test the bind server configuration using dig command

dig @

; <<>> DiG 9.6-ESV-R1 <<>> @
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<

Was this article helpful?

Related Articles

Leave A Comment?