- sa.sin_addr.s_addr = htonl (INADDR_LOOPBACK);
- GNUNET_RESOLVER_ip_get (sched,
- cfg,
- "localhost", AF_INET, timeout, &check_127, cls);
- GNUNET_RESOLVER_hostname_get (sched,
- cfg,
- (const struct sockaddr *) &sa,
- sizeof (struct sockaddr),
- GNUNET_YES, timeout, &check_localhost, cls);
- GNUNET_RESOLVER_hostname_get (sched,
- cfg,
- (const struct sockaddr *) &sa,
- sizeof (struct sockaddr),
- GNUNET_NO,
- timeout, &check_localhost_num, cls);
- GNUNET_RESOLVER_hostname_resolve (sched,
- cfg,
- AF_UNSPEC, timeout, &check_hostname, cls);
- // Testing non-local dns resolution
- // DNS Rootserver to test: a.root-servers.net - 198.41.0.4
-
- char const * rootserver_name = ROOTSERVER_NAME;
-
+ sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
+ GNUNET_RESOLVER_ip_get(cfg, "localhost", AF_INET, timeout, &check_127,
+ cls);
+ GNUNET_RESOLVER_hostname_get(cfg, (const struct sockaddr *) &sa,
+ sizeof(struct sockaddr), GNUNET_YES, timeout, &check_localhost, cls);
+ GNUNET_RESOLVER_hostname_get(cfg, (const struct sockaddr *) &sa,
+ sizeof(struct sockaddr), GNUNET_NO, timeout, &check_localhost_num, cls);
+ GNUNET_RESOLVER_hostname_resolve(cfg, AF_UNSPEC, timeout,
+ &check_hostname, cls);
+
+
+ /*
+ * Looking up our own fqdn
+ */
+ own_fqdn = GNUNET_RESOLVER_local_fqdn_get();
+ check_local_fqdn( NULL, own_fqdn);
+ GNUNET_free_non_null (own_fqdn);
+
+ /*
+ * Testing non-local DNS resolution
+ * DNS rootserver to test: a.root-servers.net - 198.41.0.4
+ */
+
+ const char * rootserver_name = ROOTSERVER_NAME;