|
发表于 2019-3-17 16:32:01
|
显示全部楼层
#!/bin/bash
#本程序由熊茂祥编译。
#赋予执行权限
/bin/chmod +x /rw/pckg/plugin/dnsmasq/dnsmasq
#定义绑定IP地址
bindip="192.168.0.1,192.168.88.1,172.168.0.1,127.0.0.1"
#定义绑定端口
bindport="53"
#定义缓存时间
cachettl="720"
#定义缓存容量(条)
cachesize="2048"
#定义缓存最大并发数
cachefm="2048"
#定义不绑定DHCP服务的接口
nodhcp="eth0,eth1"
/rw/pckg/plugin/dnsmasq/dnsmasq --max-cache-ttl=$cachettl --cache-size=$cachesize --dns-forward-max=$cachefm --port=$bindport --resolv-file=$dnsserver --stop-dns-rebind --no-dhcp-interface=$nodhcp --listen-address=$bindip --server=114.114.115.115 --server=114.114.114.114 --all-servers 结贴送给有需要的人。 |
|