I have the problem that my Ubuntu machine uses the wrong DNS server. For some reason the machine queries localhost
for DNS information.
I have added the DNS server in the network settings GUI, but /etc/resolv.conf
still contains 127.0.0.1
as the DNS server address. Now, I thought I could just edit the file by myself, but it explicitly says I should not edit the file by hand.
Now, since the network settings GUI didn't generate the file with the right settings, how do I generate a new resolv.conf
file by myself?