I'm trying to edit the resolv.conf file on my ubuntu 16.04 instance, but I'm unable.
Here are the first two lines of the file:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
Please help me to find out how to fix it.
Edited: Here's the entire file
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 62.210.16.6
nameserver 62.210.16.7
search online.net
I'm trying to edit this file to connect my domain to this server. Any type of edits in this file is overwritten with the exact same lines.
It is a fresh new installation and yes I'm using "sudo".
sudo
to elevate your privileges you can edit the file. The warning is real though, if you reboot, or restart networking that file is re-created and any changes will be lost. – guiverc Dec 15 '18 at 21:20/etc/systemd/resolved.conf
is where your current nameservers and search domains are being defined. Also check/etc/network/interfaces
. Report back to @heynnema or I may miss your comment. – heynnema Dec 16 '18 at 08:38