DNS Server Warning
when rebuilds dns config, its throwing some warning and restarts successfully.
[bindbackend] Warning! Skipping zone '.' because type 'hint' is invalid
How to solve this
-
Have you checked the file in /var/named on the system to see if there is file there that isn't a dns zone? 0 -
when rebuilds dns config, its throwing some warning and restarts successfully. [bindbackend] Warning! Skipping zone '.' because type 'hint' is invalid How to solve this
Short answer: It's okay to ignore those warnings - it's because of compatibility reasons. Long answer: Basically, cPanel (currently)) supports two nameservers - BIND and PowerDNS (PDNS) with BIND being the older/more established one and PowerDNS being the new quicker one. PowerDNS has the functionality to OpenDNS and services such as Authoritative Server. Hence why it is ignoring/skipping those lines in the /etc/named.conf file. If you really wanted, you could remove the sections named.conf file relating to the zone "." - i.e. the sections:view "localhost_resolver" { /* This view sets up named to be a localhost resolver ( caching only nameserver ). * If all you want is a caching-only nameserver, then you need only define this view: */ ... zone "." IN { type hint; file "/var/named/named.ca"; }; ... };
And out of theview "internal"
and out of theview "external"
section:zone "." IN { type hint; file "/var/named/named.ca"; };
However, I would not recommend this as it will break BIND if you ever have to switch to that nameserver, may break things I haven't anticipated, might be autoregenerated by cPanel etc etc. The warnings aren't major so I would just ignore them.0
Please sign in to leave a comment.
Comments
2 comments