3 Ways to Check Ubuntu Server’s Current DNS Settings from Terminal

No .1:

cat /etc/resolv.conf

No. 2:

nmcli dev show | grep 'IP4.DNS'

No. 3:

resolvectl status

 

Honestly, I have not completely figured out why there are three ways to do it and when to use each. This is certainly a gap in my Linux networking knowledge at this stage. Certainly, I’ll come back with more posts to clear things up.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *