cokebar / gfwlist2dnsmasq

A shell script which convert gfwlist into dnsmasq rules. Python version: https://github.com/cokebar/gfwlist2dnsmasq_python
GNU General Public License v3.0
890 stars 249 forks source link

multiple dns #18

Open islercn opened 7 years ago

islercn commented 7 years ago

the usage of multiple dns is allowed for each domain, so is it possible to add the feature?

cokebar commented 6 years ago

Technically no problem. But the problem is I do not have time doing this recently.

PR is welcomed.

fanthos commented 6 years ago

It would be great if the script can read "whitelist" part(lines begin with @@) and use default dns for them.

cokebar commented 6 years ago

@fanthos If these domains are not included in this gfwlist2dnsmasq rule file, default DNS set in dnsmasq will be used. So there's no need to proceed theses domains.

fanthos commented 6 years ago

some domains like dl.google.com is in the list and starts with @@, should use default dns server instead.

cokebar commented 6 years ago

@fanthos Please use this instead: https://github.com/felixonmars/dnsmasq-china-list/blob/master/google.china.conf refer to #5.

And process these rules from gfwlist is impossible, It will cause problems.

eg: share.dmhy.org @@|https://share.dmhy.org

In Gfwlist, http / https connection has different behaviors, while this is impossible for dnsmasq.