SelfHost stub DNS nameserver onver tcp
SelfHost stub DNS nameserver onver tcp
apt install git -y
cd /etc
git clone https://github.com/denisix/dns2tcp
cd dns2tcp
go mod init dns2tcp
go mod tidy
go build dns2tcp.go
./dns2tcp
- Cannot read config file: open dns2tcp.conf: no such file or directory
- Loading configuration..
- Done, using:
- bind to: 127.0.0.1:8383
- ttl absent: 7200
- tcp timeout: 5 sec
- retry cnt: 10
- garbage collector interval: 1800 sec
- NSes: []
- Starting DNS server, binding to 127.0.0.1:8383
Create config File for change binding or ns :
nano dns2tcp.conf