Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
satng committed Nov 5, 2023
1 parent 9e8ba1f commit ef9e8c9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# simple_dns_proxy
# simple_dns_proxy
Simple DNS forwarding,On the pc side we can modify the /etc/host file, but on the mobile side we need a simple DNS proxy

#### Custom domain name resolution
```json
{
"domain_ip_map": {
"www.123.com": "27.115.87.106",
"example.net": "192.168.0.2"
}
}

```

#### The resolv.conf file specifies the DNS servers that the system should use for name resolution
```text
nameserver 114.114.114.114
nameserver 223.5.5.5
nameserver 8.8.8.8
```
> 1.Just take the first value and adjust it according to your network
>
> 2.If you do not want to set this parameter, you can use the default route address instead of eg.192.168.1.1
2 changes: 1 addition & 1 deletion resolv.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nameserver 114.114.114.114
nameserver 192.168.1.1
nameserver 223.5.5.5
nameserver 8.8.8.8

0 comments on commit ef9e8c9

Please sign in to comment.