HOW TO USE CYBERPANEL AS DNS ONLY SERVER!

How to fix?

; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 <<>> xxx.com @35.199.xxx.xxx ns
;; global options: +cmd
;; connection timed out; no servers could be reached

I think you have an external firewall blocking DNS ports.

worked, thank you