[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to change default nameserver?



greetings,

I know I can edit the entries in /etc/resolv.conf, but it will be overwritten by DHCP server.
I searched the internet and got one of the answers:

apt install resolvconf
echo "nameserver 127.0.0.1" >> /etc/resolvconf/resolv.conf.d/head

what's the difference for /etc/resolv.conf and the method above?

Thanks & Happy weekend.
corey hickman


Reply to: