In This Section
Find External IP
To obtain the external IP of a host or container run the following command from the console. The output will the public ip.
curl ipinfo.io/ip
Find MX Record
To obtain the MX record of a domain as resolved by the DNS a host or container is using run the following command from the console. The output will the MX record.
nslookup -type=mx example.com