Tools: Let sql query DNS as well for aliases
Currently, sql greps /etc/hosts to determine whether a database has
been replicated to Labs. However, the host aliases there will move to
DNS in the near future (cf. T63897).
This change uses "getent hosts" that queries /etc/hosts and DNS.