Microsoft DNS - Access is Denied. Event log: The DNS server was unable to open Active Directory

In my case, the hosts file (c:\Windows\System32\drivers\etc\hosts) had the following two lines hashed out:

127.0.0.1       localhost
::1             localhost

They need to be like the example above for the DNS server to funtion properly.