how to configure a static IP address on ubuntu 18.04 code example Example: ubuntu 18.04 get public ip address dig +short myip.opendns.com @resolver1.opendns.com