https://hub.docker.com/r/ngoduykhanh/powerdns-admin

https://www.github.com/ngoduykhanh/PowerDNS-Admin


yum -y install bind-utils

yum install dnsmasq -y

yum remove -y  dnsmasq   bind-utils  &&  rm -rf  /etc/dnsmasq.conf.rpmsave

cp -a /etc/dnsmasq.conf   /etc/dnsmasq.conf.bak


vim  /etc/dnsmasq.conf 

port=53
resolv-file=/etc/resolv.conf
listen-address=127.0.0.1
strict-order
address=/amazonaws.com/127.0.0.1
address=/your-server.de/127.0.0.1
address=/contaboserver.net/127.0.0.1
address=/metavpn.cc/127.0.0.1
address=/itldc-customer.net/127.0.0.1
address=/inbc.net.ua/127.0.0.1
address=/had.pm/127.0.0.1
address=/hosted-by-vdsina.ru/127.0.0.1
address=/jlccptt.net.cn/127.0.0.1
address=/macloud.host/127.0.0.1
address=/serveroffer.net/127.0.0.1
address=/idknet.com/127.0.0.1
address=/vps-default-host.net/127.0.0.1
address=/as210546.net/127.0.0.1
address=/a.ookq.cn/127.0.0.1
address=/b.oray.com/127.0.0.1
address=/mail.quartz-m.ru/127.0.0.1
address=/hsk.oray.com/127.0.0.1
address=/server-hosting.expert/127.0.0.1	
address=/akamaitechnologies.com/127.0.0.1
address=/cloudfront.net/127.0.0.1
address=/googleusercontent.com/127.0.0.1
address=/compute-1.amazonaws.com/127.0.0.1
address=/deploy.static.akamaitechnologies.com/127.0.0.1
address=/ghs-ssl.googlehosted.com/127.0.0.1
address=/sakuraserver.co/127.0.0.1
address=/_gateway/127.0.0.1
address=/googlehosted.com/127.0.0.1
address=/oray.com/127.0.0.1
address=/hsk.top/127.0.0.1  
address=/imdo.co/127.0.0.1 
address=/goho.co/127.0.0.1   
address=/zicp.fun/127.0.0.1
address=/yicp.fun/127.0.0.1
address=/oicp.net/127.0.0.1
address=/zicp.vip/127.0.0.1
address=/mcast.net/127.0.0.1 
address=/_gateway/127.0.0.1
address=/gateway/127.0.0.1
address=/DESKTOP/127.0.0.1
address=/bi/127.0.0.1
address=/netbios/127.0.0.1
address=/domain/127.0.0.1
address=/contabo.net/127.0.0.1
address=/hosted-by-worldstream.net/127.0.0.1
address=/volia.net/127.0.0.1
address=/la.net.ua/127.0.0.1
address=/sumy.ua/127.0.0.1
address=/fornex.cloud/127.0.0.1

cp -a /etc/resolv.conf    /etc/resolv.conf.bak

# 注意顺序
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4

address=/example.com/10.11.33.55

则表示*.example.com这样的域名都会被解析成10.11.33.55,这就实现了我们文章开头所说的带日期域名的泛解析功能,不用每天蛋疼的去修改host了。


dig  static.180.198.108.65.clients.your-server.de

ping static.180.198.108.65.clients.your-server.de


#重启

systemctl restart dnsmasq

# 设置为开机自启动

systemctl enable dnsmasq

# 启动 dnsmasq 服务

systemctl start dnsmasq

systemctl status dnsmasq

systemctl stop dnsmasq

ss -tnl | grep :53


https://hub.docker.com/r/maxmengdocker/webdns

https://github.com/maxmengtor/webdns

docker run -p 53:53/udp -p 53:53/tcp -p 8180:8180/tcp -p 8443:443/tcp  --name=dns --restart=always  -v /sys/fs/cgroup:/sys/fs/cgroup:ro --privileged -v /data/docker/tools/webdns:/webdns --user root -dit webdns:0.3

Set it up with https://127.0.0.1:8143/namedmanager

-User/Pass as setup/setup123

-nslookup your.domain.name 127.0.0.1

https://hub.docker.com/r/joelnb/dnsmasq

https://github.com/joelnb/dockerfiles

docker run -d  --name=dns --restart=always  -v /etc/localtime:/etc/localtime:ro  -p 53:53 -p 53:53/udp -v /data/docker/tools/dnsmasq/dnsmasq.hosts:/etc/dnsmasq.hosts   -v /etc/localtime:/etc/localtime:ro  joelnb/dnsmasq

vi  /data/docker/tools/dnsmasq/dnsmasq.hosts

1.2.3.4 example.com


https://hub.docker.com/r/alphabet5/dnsmasq

docker run -d  --name=dns --restart=always   -p 53:53/tcp -p 53:53/udp  -v /data/docker/tools/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf  -v /etc/localtime:/etc/localtime:ro  alphabet5/dnsmasq


vi  /data/docker/tools/dnsmasq/dnsmasq.conf

log-queries
server=1.1.1.1 \ # primary nameserver
server=9.9.9.9 \ # secondary nameserver
server=/domain.com/192.168.1.1 \ # primary nameserver used for queries to domain.com
server=/domain.com/192.168.1.2 \ # secondary nameserver used for queries to domain.com
address=/test.host.123/192.168.1.1 #static ip used for test.host.123

log-queries \ #记录所有查询(通常会快速填充日志)

server=1.1.1.1 \ # primary nameserver

server=9.9.9.9 \ # secondary nameserver

server=/domain.com/192.168.1.1 \ # primary nameserver used for queries to domain.com

server=/domain.com/192.168.1.2 \ # secondary nameserver used for queries to domain.com

address=/test.host.123/192.168.1.1 #static ip used for test.host.123


docker run -d  -p 9191:80  --name dns  --restart=always  -e SECRET_KEY='HtmlToo'  -v /data/docker/tools/powerdns:/data  -v /etc/localtime:/etc/localtime:ro  ngoduykhanh/powerdns-admin:latest


http://b.htmltoo.com:9191


https://hub.docker.com/r/eafxx/bind

docker run --name dns -d --restart=always -p 53:53/tcp -p 53:53/udp -p 10000:10000/tcp -v /data/docker/tools/bind:/data  -e WEBMIN_ENABLED=true  -e  WEBMIN_INIT_SSL_ENABLED=false  -e  WEBMIN_INIT_REFERERS=dns.htmltoo.com  -e WEBMIN_INIT_REDIRECT_PORT=10000  -e "ROOT_PASSWORD=wdqdmm@0"  -e "TZ=Asia/Shshanghai"  -v /etc/localtime:/etc/localtime:ro   eafxx/bind


http://b.htmltoo.com:10000   root  w~0

docker exec -it dns /bin/bash

apt-mark hold tzdata

apt-get update -y

apt-get install -y wget vim net-tools curl git cron

apt-get dist-upgrade -y 

apt-get upgrade -y 

apt autoremove    

apt clean



签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回