Hello, Encountered the same problem, and added the line as instructed above to the /etc/named.conf and restarted,
however, "DNS caching is disabled! ..." warning still appears.
Noticed that in my /etc/named.conf file is "localhost" instead of above "localnets". Does that make difference related...