Mengatasi Ubuntu Error Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001

Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018- 0001, retrying transaction with reduced feature level UDP

Kesalahan tersebut sering terjadi pada linux ubuntu , desktop maupun server.

Hal ini di sebabkan oleh conflict antara dns resolution resolver di system.

Untuk mengatasinya dengan mengubah symbolic link pada /etc/resolv.conf

Biasanya (pada ubuntu 20) symbolic link /etc/resolv.conf tertarget pada /run/systemd/resolve/stub/resolv.conf

ls -l /etc/resolv.conf

menghasilkan :

lrwxrwxrwx 1 root root 32 Jun 7 21:07 /etc/resolv.conf -> /run/systemd/resolve/stub/resolv.conf

Untuk mengatasinya ubah symbolic link /etc/resolv.conf ke /run/systemd/resolve/resolv.conf

ln -sf /run/systemd/resolve/resolv.conf /etc/resolve.conf

Lalu restart proses :

/usr/bin/systemctl daemon-reload
/usr/bin/systemctl restart systemd-resolved
/usr/bin/systemctl restart systemd-networkd