I installed resolvconf. I added the following file and put the DNS in it:
Code: Select all
# nano /etc/resolvconf/resolv.conf.d/head
nameserver IP
nameserver IP
Code: Select all
# /sbin/resolvconf --enable-updates
# systemctl restart resolvconf
# /sbin/resolvconf -u
Thank you.