Skip to content

Instantly share code, notes, and snippets.

View isafe's full-sized avatar

iSec isafe

  • Mars
View GitHub Profile
@isafe
isafe / dns.c
Last active October 1, 2022 06:12
dns.c add timeout
//DNS Query Program on Linux
//Author : Silver Moon (m00n.silv3r@gmail.com)
//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