Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cokebar committed Jul 13, 2015
1 parent 204f928 commit a49cde9
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,47 @@ __Notification: Need python2, do not use python3__

Using:
-----
First git clone
```bash
git clone https://github.com/cokebar/gfwlist2dnsmasq.git
```
Then Modify gfwlist2dnsmasq.sh:

Change this to your DNS server:
```bash
DNS='127.0.0.1#5353'
Modify gfwlist2dnsmasq.py:

Change this to your DNS server IP&port:
```python
mydnsip = '127.0.0.1'
mydnsport = '5353'
```

Change this to your ipset name:
```bash
IPSET=gfwlist
```python
ipsetname = 'gfwlist'
```

Path to save you rule file:
```bash
RULE_FILE=./dnsmasq_list.conf
```python
outfile = './dnsmasq_list.conf'
```

Add your own extra domain here. One domain in a line. eg:
```bash
EX_DOMAIN='.google.com
.google.com.hk
.google.com.tw
.google.com.sg
.google.co.jp
.blogspot.com
.blogspot.sg
.blogspot.hk
.blogspot.jp
.gvt1.com
.gvt2.com
.gvt3.com
.1e100.net
.blogspot.tw'
```python
EX_DOMAIN=[ \
'.google.com', \
'.google.com.hk', \
'.google.com.tw', \
'.google.com.sg', \
'.google.co.jp', \
'.blogspot.com', \
'.blogspot.sg', \
'.blogspot.hk', \
'.blogspot.jp', \
'.gvt1.com', \
'.gvt2.com', \
'.gvt3.com', \
'.1e100.net', \
'.blogspot.tw' \
]
```
And then just cd to the directory and run gfwlist2dnsmasq.sh:
Then run gfwlist2dnsmasq.py:
```bash
cd gfwlist2dnsmasq
./gfwlist2dnsmasq.sh
python gfwlist2dnsmasq.py
```
If you don't want to generate the rules by yourself, you can download the rule file from:

Expand Down

0 comments on commit a49cde9

Please sign in to comment.