Hello, > It is currently quite rough: no localization, no options, and so on. But > I think it just works. Do you think such a tool would be worth being > integrated to some software suite, such as inetutils?
Such a tool would certainly be useful. However, I have serveral questions regarding the implementation: 1. You use gethostbyname2, which is a glibc extension and is not available on other systems. I'd suggest to use getaddrinfo instead. 2. The code handles only AF_INET and AF_INET6 families. If another family is encountered, its behavior is uncertain. 3. The code declares variables within a code block. Regards, Sergey