getpinga / parkDNS-go

A Golang-based DNS server for unified domain management.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parkDNS

A Golang-based DNS server for unified domain management. Install and define the zone in the config file. Then point all domains to in and it will serve the same zone details for all parked domains.

Install

$ go get github.com/miekg/dns
$ go build parkdns.go
$ sudo ./parkdns

records.json sample

{
  "records": [
    {
      "type": 1,
      "ttl": 3600,
      "data": "192.168.1.1"
    },
    {
      "type": 15,
      "ttl": 3600,
      "data": "mail.example.com.",
      "priority": 10
    },
    {
      "type": 15,
      "ttl": 3600,
      "data": "mail2.example.com.",
      "priority": 20
    }
  ]
}

About

A Golang-based DNS server for unified domain management.

License:MIT License


Languages

Language:Go 100.0%