[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] A command to query the libc resolver
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-inetutils] A command to query the libc resolver |
Date: |
Wed, 18 Aug 2010 12:11:03 +0300 |
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