Use Getent Hosts in Scripts

It is common practice to use tools like ‘dig’ to lookup DNS results, but this has very bad performance. If you just need to lookup a name or address, there’s an easier, friendly way.

2015-04-15 · 5 min