Talk:DNS query

From Rosetta Code

Task definition

Is this task just about address lookups, or are we to look up more information besides? For example, MX records (which I note www.kame.net doesn't have…) –Donal Fellows 12:21, 17 May 2011 (UTC)

Additional record types would certainly be interesting. I can see about adding each of A, AAAA, MX and SRV records to rosettacode.org. (A and MX should already be there. SRV is the next one likely to be implemented, as i get SIP set up. AAAA is going to require me to do a bit more setup wrt IPv6, and thus probably won't happen for a couple weeks, at least. --Michael Mol 15:11, 17 May 2011 (UTC)

Differentiate between IP4 and IPV6

Would it be better to split the IP4 and IPV6 into separate tasks here? Or maybe require the code sections to be suitably commented so that we can see which sections of code apply to each of the protocols.

Markhobley 20:50, 17 May 2011 (UTC)

It would probably be worth creating a separate task for getting an ipv4 ip address. However, the technique you would use there need not be the technique used here (think gethostbyname vs. getaddrinfo), and having two different queries to contrast might be informative. --Rdm 21:36, 17 May 2011 (UTC)