-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |