mirror of https://github.com/Chizi123/dnscomp.git

Joel Grunbaum
2020-10-19 31afa3d8d6499d119bdf54bd37820b630c9e37e9
main.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include "dns.h"
int main(int argc, char** argv)
@@ -45,7 +46,9 @@
        }
    }
    unsigned char buf[65536];
    resolve(buf, hostname, server, type);
    struct timespec time;
    time = resolve(buf, hostname, server, type);
    printf("Request took %ld.%09lds\n", time.tv_sec, time.tv_nsec);
    print_packet(buf);
    return 0;
}