Simple DNS server written in go.
Go to file
2020-12-29 14:45:41 +01:00
.drone.yml added drone file 2020-12-29 14:45:41 +01:00
blacklist.go moved handle of blacklist domains 2020-12-28 00:36:54 +01:00
config.yml implemented blacklist 2020-12-27 22:13:13 +01:00
coolDns.go moved handle of blacklist domains 2020-12-28 00:36:54 +01:00
go.mod initial commit 2020-12-21 22:43:07 +01:00
go.sum initial commit 2020-12-21 22:43:07 +01:00
README.md added README 2020-12-26 16:45:54 +01:00
zonefile.txt implemented wildcards 2020-12-22 22:13:32 +01:00

Cool dns

A simple dns server written in Go. It supports zonefile parsing, different zones based on IP and forwarding.

Configuration

Example config file

zones:                      
- zone: example.com.        # Fully qualified domain name of the zone
  file: zonefile.txt        # Path to the zonefile to parse

- zone: example.com.
  file: zonefile2.txt
  acl:                      # What IPs can query the zone
    - lan

acl:                        # List of ip filter rules
- name: vpn                 # Name of the rule
  cidr: 10.0.0.0/24         # CIDR of the rule
- name: lan
  cidr: 192.168.0.0/16
- name: local
  cidr: 127.0.0.1/32

forward:
  acl:                      # What IPs are allowed
    - vpn
  server: "8.8.8.8:53"      # DNS server to forward to

address: 0.0.0.0:8053       # What address and port to listen on