2012-05-11 digもnslookupもなしに端末でドメイン引きたい場合 getentが使える。 $ getent hosts example.compingでもいいけど、対象ホストにパケット飛ばしたくない場合に使える(かも)。