Use getent instead of dig so that /etc/hosts is respected.

I was setting up a 5 node test but ran into issues because `dig` will *only* get results from a DNS server. `getent` respects the `/etc/hosts` file but falls back to DNS.

I'm really new to salticid, so this is copy-pasta like the dig commands were before.