Talk:DNS query: Difference between revisions

→‎Differentiate between IP4 and IPV6: Splitting the task isn't a great idea
(Ideas for more tasks.)
(→‎Differentiate between IP4 and IPV6: Splitting the task isn't a great idea)
Line 15:
 
:: Some programs want to support both IPv4 and IPv6. These programs get a list of addresses. Then the clients try each address, or the servers bind all addresses from the list. This is why I want both IPv4 and IPv6 in one task. A separate IPv4-only task might be a good place to use <code>gethostbyname()</code> or languages that know only IPv4. --[[User:Kernigh|Kernigh]] 22:05, 17 May 2011 (UTC)
 
::: Current best practice is to only use getaddrinfo (when not talking DNS directly) with gethostbyname being a legacy interface. As such, I'd consider this task to have two levels of completion: '''Basic''' (getting ''an'' address for the host, any address family) and '''Extended''' (getting both the IPv4 and the IPv6 addresses). However, both are “querying for host addresses” so it's still a solution of the task to do the basic version. Consider phrasing as “extra credit”. –[[User:Dkf|Donal Fellows]] 14:43, 18 May 2011 (UTC)
Anonymous user