Skip to content

DNS server written in Go using the Redis databases such that speed go stonks.

Notifications You must be signed in to change notification settings

NavinShrinivas/GRDNS

Repository files navigation

GRDNS : The easy to setup DNS caching server

GRDNS aims to be the program to run on yout DNS server when one needs fast resolve times. Consider major ISP who have their own DNS servers (Which may sometimes be used for tracking, but thats not the point of this project) who want to server throusands of users simultaneously. GRDNS does this by using in memeory key value pairs and extreme concurrency.

Basic Info

  • Built using GoLang and redis.
  • Clean and effective code
  • Hash based database storing records (redis)
  • Multi threading done right
  • Using low overhead libraries wherever possible
  • Using in memory data as much as possible when also maintaining stability
  • using newer languages such as GO lang

Building locally :

Note : this project is built for the linux system, compatibility with windows is not confirnmed(This can be an issue, propose if you wish to). To run this project, you need to have golang and redis installed. MacOS users can run brew install go redis to install go and redis

After getting the dependencies, you can run:

$ ./run.sh

Should compile and start the DNS server.

Testing locally :

  • A single resolve test can be done like so :
$ dig @0.0.0.0 google.com

It's best you run the above command twice. This is because the first resolve doesn't hit the cache, second will.

  • A performance test can be done like so after starting the DNS server (needs dnsperf installed before hand):
./test.sh --10mtest

Maintainers in charge :

Navin Shrinivas Mukund Deepak

Performance :

  • Down below we see comparision to cloudflare and google dns server (which note runs on very powerful hardware, mine runs simply on my computer) :
  • GRDNS : ~110QP/s || google's DNS : ~360QP/s || cloudflare's DNS : 220QP/s
  • images :

GRDNS

google dns

cloudflare dns

About

DNS server written in Go using the Redis databases such that speed go stonks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published