After giving it /etc/resolv.conf
-bash: /etc/resolv.conf: Permission denied
You seem new to Terminal....
From this, he meant
If Still you cannot access those files, try
chmod 700 /etc/resolv.conf
and then retry.
If all the services are showing unavailable, Restart the Server, If still you are seeing those Error, Edit /etc/resolv.conf
If still DNS seems unavailable, Try to manually start PDNS Server.
If anything is showing, Note the PID and then
(Automatically selects suitable service activated)
Let me know if it works or not!