-
Notifications
You must be signed in to change notification settings - Fork 4
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
5 changed files
with
27 additions
and
9 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,13 +1,30 @@ | ||
# dns-proxy-server | ||
dns proxy server | ||
|
||
dns server depend `os` , `dns` , `dgram` module on Node.js eenvironment。use `dgram` module create proxy server , | ||
`lookup()` function and `resolve4()` funtion will be resolve domain to ipv4. | ||
|
||
``` | ||
npm install dns-proxy-server -g | ||
``` | ||
|
||
### cmd | ||
|
||
``` | ||
dnsproxy ip port | ||
dnsproxy[ ip[ port]] | ||
``` | ||
|
||
### arguments | ||
|
||
* `ip` : ipv4 address , default depend on system. | ||
* `port`: dns server bind the port if provide, default `53`. | ||
|
||
### example | ||
|
||
``` | ||
dnsproxy | ||
//or | ||
dnsproxy 8.8.8.8 | ||
//or | ||
dnsproxy 8.8.8.8 53 | ||
``` |
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
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
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
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