1. DNS/実装/KnotDNSresolver/TCPonly

$ diff -c resolve.c.orig resolve.c

*** resolve.c.orig      2015-10-16 23:41:45.632511338 +0900
--- resolve.c   2015-10-16 23:37:06.200501383 +0900
***************
*** 268,273 ****
--- 268,274 ----
  
  static int query_finalize(struct kr_request *request, struct kr_query *qry, knot_pkt_t *pkt)
  {
+       qry->flags |= (QUERY_SAFEMODE | QUERY_TCP); /* TCP */
        /* Randomize query case (if not in safemode) */
        qry->secret = (qry->flags & QUERY_SAFEMODE) ? 0 : kr_rand_uint(UINT32_MAX);
        knot_dname_t *qname_raw = (knot_dname_t *)knot_pkt_qname(pkt);

UDP返答が512バイトを超えているときにはTCPで問い合わせをするようにしたい。

@SIG@