Skip to content

开箱即用带有完整分流配置以及Geoip、GeoSite 列表自动更新的 Mosdns 镜像

License

Notifications You must be signed in to change notification settings

ps2zhuantou/mosdns-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mosdns-docker

Building a Mosdns Docker image with a full configuration and automatic updates for Geoip and GeoSite lists.

https://hub.docker.com/r/fordes123/mosdns

Usage

docker-compose

services:
  mosdns:
    image: fordes123/mosdns:latest
    container_name: mosdns
    volumes:
      - /path/to/mosdns:/etc/mosdns
    environment:
      - TZ=Asia/Shanghai
      - CRON=0 0 */7 * *
    ports:
      - 53:53/tcp
      - 53:53/udp
    restart: unless-stopped

docker cli

docker run -d \
  --name mosdns \
  --restart unless-stopped \
  --env TZ=Asia/Shanghai \
  --env CRON='0 0 */7 * *' \
  -v /path/to/mosdns:/etc/mosdns \
  -p 53:53/tcp \
  -p 53:53/udp \
  fordes123/mosdns:latest

Parameters

Parameter Function
-p 53 DNS port.
-v /etc/mosdns config path.
-e TZ=Asia/Shanghai server time zone
-e CRON=0 0 */7 * * auto update geoip rule cron expression

Acknowledgements

this repository source code copy from IrineSistiana/mosdns-docker
config file reference from mosdns community
geoip geosite lists source 17mon/china_ip_list and Loyalsoldier/v2ray-rules-dat

About

开箱即用带有完整分流配置以及Geoip、GeoSite 列表自动更新的 Mosdns 镜像

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published