getent ahostsv4 endpoints.office.com|head -n1|awk '{print $1}'
ping endpoints.office.com -W 1 -c 1 -q 2>&1 | grep -Po "(\d{1,3}\.){3}\d{1,3}"