+ return sendmsg(fd, &m, 0);
+}
+
+void
+dns_send_question(struct uloop_fd *u, const char *question, int type)
+{
+ static struct dns_header h = {
+ .questions = cpu_to_be16(1),
+ };
+ static struct dns_question q = {
+ .class = cpu_to_be16(1),
+ };
+ static struct iovec iov[] = {
+ {
+ .iov_base = &h,
+ .iov_len = sizeof(h),
+ },
+ {
+ .iov_base = name_buffer,
+ },
+ {
+ .iov_base = &q,
+ .iov_len = sizeof(q),
+ }
+ };
+ int len;