Skip to content

Instantly share code, notes, and snippets.

@sajingeo
sajingeo / dns.c
Created September 2, 2021 15:45 — forked from fffaraz/dns.c
DNS Query Code in C with linux sockets
//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

Keybase proof

I hereby claim:

  • I am sajingeo on github.
  • I am sajingeo (https://keybase.io/sajingeo) on keybase.
  • I have a public key ASDtNLEAuekWI8oX6aOtfoQTbp9PyQDv0tslGKALCRStOAo

To claim this, I am signing this object: