Skip to content

pradoz/dns-server

Repository files navigation

Simple DNS Server

C CI

A simple DNS Server implemented in C.

Building

make

Running Tests

make test

Running an Example

After building:

make run

# In another terminal:
dig @localhost -p 5353 example.com A
dig @localhost -p 5353 www.example.com A
dig @localhost -p 5353 mail.example.com CNAME

Expected output:

# example.com A
;; ANSWER SECTION:
example.com.    300    IN    A    192.168.1.1

# www.example.com A
;; ANSWER SECTION:
www.example.com.    300    IN    A    192.168.1.2

# mail.example.com CNAME
;; ANSWER SECTION:
mail.example.com.    300    IN    CNAME    example.com.

Cleaning up

make clean

Notes

About

Simple DNS Server in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages