Skip to content

Instantly share code, notes, and snippets.

View douzifly's full-sized avatar
🙄
I may be slow to respond.

xy douzifly

🙄
I may be slow to respond.
View GitHub Profile
@douzifly
douzifly / dns.c
Created March 21, 2020 12:29 — forked from fffaraz/dns.c
DNS Query Code in C with linux sockets
//DNS Query Program on Linux
//Author : Silver Moon ([email protected])
//Dated : 29/4/2009
//Header Files
#include<stdio.h> //printf
#include<string.h> //strlen
#include<stdlib.h> //malloc
#include<sys/socket.h> //you know what this is for
#include<arpa/inet.h> //inet_addr , inet_ntoa , ntohs etc