Sam's Tech Blog

'You can check out any time you like, But you can never leave!'

2019-08-21

DNS add search domain from command line

How to: add search domain suffix

DNS add search domain from command line

nmcli c show

nmcli c modify "STATIC-Google-DNS-IP4" ipv4.dns-search "ic4.eu"

sudo nmcli c down "STATIC-Google-DNS-IP4" && sudo nmcli c up "STATIC-Google-DNS-IP4"

You should now see your added DNS search suffixes

cat /etc/resolv.conf