Commit 8c72d353 authored by Felix Yan's avatar Felix Yan

add Makefile to generate customized dnsmasq conf and unbound conf

parent e8c1e991
SERVER=114.114.114.114
raw:
sed -e 's|^server=/\(.*\)/114.114.114.114$$|\1|' accelerated-domains.china.conf > accelerated-domains.china.raw.txt
dnsmasq: raw
sed -e 's|\(.*\)|server=/\1/$(SERVER)|' accelerated-domains.china.raw.txt > accelerated-domains.china.dnsmasq.conf
unbound: raw
sed -e 's|\(.*\)|forward-zone:\n name: "\1."\n forward-addr: $(SERVER)\n|' accelerated-domains.china.raw.txt > accelerated-domains.china.unbound.conf
clean:
rm -f accelerated-domains.china.{dnsmasq,unbound}.conf accelerated-domains.china.raw.txt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment