From 224e2df31bb37f31487d55e39d773f37e526d47e Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Mon, 23 Jul 2012 10:35:54 +0000 Subject: -some notes for dns2gns --- src/gns/gnunet-dns2gns.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gns/gnunet-dns2gns.c') diff --git a/src/gns/gnunet-dns2gns.c b/src/gns/gnunet-dns2gns.c index 741c8dd00..c8b9567b8 100644 --- a/src/gns/gnunet-dns2gns.c +++ b/src/gns/gnunet-dns2gns.c @@ -241,7 +241,7 @@ result_processor (void *cls, rec); break; case GNUNET_DNSPARSER_TYPE_CNAME: - GNUNET_break (0); // FIXME: not implemented! + GNUNET_break (0); // FIXME: CNAME is handled by the GNS resolver! We never return this unless explicitly requested! break; default: /* skip */ @@ -316,6 +316,8 @@ handle_request (struct GNUNET_NETWORK_Handle *lsock, (0 == strcasecmp (".zkey.eu", &name[name_len - strlen (".zkey.eu")])) ) { + //FIXME here check if the top label after zkey.eu is a hash and append + //correct TLD appropriately name[name_len - strlen (".zkey.eu")] = '\0'; strcat (name, ".gnunet"); /* little hack, only works because ".zkey.eu" is longer than ".gnunet" */ @@ -338,7 +340,7 @@ handle_request (struct GNUNET_NETWORK_Handle *lsock, { /* FIXME: do traditional *DNS* lookup; note that gnunet-service-dns already has code to do this; - factor into library to share! */ + factor into library to share! Why not use GNUNET_RESOLVER here?*/ GNUNET_break (0); } GNUNET_free (name); -- cgit v1.2.3