nivrrex / tinydns

Tiny proxy DNS server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TinyDNS

This is a tiny DNS server with simple JSON config written in C.

Features

  • filesize is just only 20Kb!
  • cache DNS queries for boost internet connection
  • resolve own domains from config
  • resolve multidomains like *.example.com
  • server can work on IPv6 address

Compile and Install

  • if you use Archlinux, you may install tinydns from AUR
  • for compile just run make
  • after install you need to write your IP address in /etc/tinydns.conf
  • you may also use systemctl for start and stop service

备注

  1. 原版基础上增加了端口的配置,可以在配置文件 /etc/tinydns.conf 中指定
  2. 修改了Makefile文件,可以 make CC=arm-openwrt-linux-gcc 进行跨平台编译
  3. 本地侧修改为epoll方式实现
  4. 远程侧修改为多线程方式实现,可以通过配置文件中 multi_thread 参数开启或关闭

主要是用来做DNS缓存服务器用

About

Tiny proxy DNS server

License:MIT License


Languages

Language:C 98.9%Language:Makefile 1.1%