dnssim 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/bin.sh +1 -9
- package/package.json +1 -1
package/README.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
Because they want to sell my DNS history, AT&T doesn't allow me to change the DNS server in the router I have to pay them to use. So I threw together this script which sends random requests -- making DNS data worthless.
|
3
3
|
|
4
4
|
## Setup
|
5
|
-
|
5
|
+
- Install via `npm install --global dnssim`
|
6
|
+
- Run via `npx dnssim deploy` or `npx dnssim` (you can omit npx if installed globally)
|
6
7
|
|
7
8
|
### Environment Variables
|
8
9
|
#### `DNS_SERVERS`
|
package/bin.sh
CHANGED
@@ -1,14 +1,6 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
|
3
1
|
#!/usr/bin/env bash
|
4
2
|
|
5
|
-
|
6
|
-
echo "\$0: $0"
|
7
|
-
echo "basename: `basename -- "$0"`"
|
8
|
-
echo "dirname: `dirname -- "$0"`"
|
9
|
-
echo "dirname/readlink: $( dirname -- "$( readlink -f -- "$0"; )"; )"
|
10
|
-
|
11
|
-
cd $( dirname -- "$( readlink -f -- "$0"; )"; )
|
3
|
+
cd $( dirname -- "$( realpath -- "$0"; )"; )
|
12
4
|
if [[ "$1" == "deploy" ]]
|
13
5
|
then
|
14
6
|
npm run deploy
|
package/package.json
CHANGED