Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There was such tool but I cannot remember its name. I needed to configure precedence of addresses by /etc/gai.conf. I finally managed to find an error, but for future, what's the name of tool which displays the addresses of hostname as getaddrinfo(3) displays it?

share|improve this question
What's the output of getaddrinfo(3)? – 3molo May 18 '11 at 9:16
up vote 1 down vote accepted

I know there is a tool resolveip for this that comes with MySQL. It should also be dead-simple to write something with e.g. Python or Perl...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.