fcdns 0.4.5 → 0.5.2
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/CHANGELOG.md +226 -0
- package/README.md +10 -11
- package/dist/cli.cjs +73354 -40205
- package/migrations/001-initial.sql +20 -0
- package/package.json +36 -22
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
### [0.5.2](https://github.com/BlackGlory/fcdns/compare/v0.5.1...v0.5.2) (2022-08-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* bundle ([210ba5b](https://github.com/BlackGlory/fcdns/commit/210ba5b3355fbdc0930d0b60cd242a4d562f2e95))
|
|
11
|
+
|
|
12
|
+
### [0.5.1](https://github.com/BlackGlory/fcdns/compare/v0.5.0...v0.5.1) (2022-08-05)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* bundle ([f80e617](https://github.com/BlackGlory/fcdns/commit/f80e6170e3cd50488992a47615b8c8e150c0609c))
|
|
18
|
+
|
|
19
|
+
## [0.5.0](https://github.com/BlackGlory/fcdns/compare/v0.4.5...v0.5.0) (2022-08-05)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### ⚠ BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* Old route cache and test cache are discarded.
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **scripts:** add scripts ([2caea3b](https://github.com/BlackGlory/fcdns/commit/2caea3b4e3c945cc450371b378bc630f9f8185a1))
|
|
29
|
+
* set process.title ([ea17e1b](https://github.com/BlackGlory/fcdns/commit/ea17e1bae4d70f85a0e7337fed577f34ae8298fe))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* scripts ([b664c6b](https://github.com/BlackGlory/fcdns/commit/b664c6b0bd2dc2e66e694b7d07bc1f56a961f18d))
|
|
35
|
+
* the syntax of option ([208c2c8](https://github.com/BlackGlory/fcdns/commit/208c2c8133859a2f2c18c74277a4de9e6e314a50))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
* replace NDJSON with extra-disk-cache ([01c33ac](https://github.com/BlackGlory/fcdns/commit/01c33accaec74851ad68431adf524137d7dac7ab))
|
|
39
|
+
|
|
40
|
+
### [0.4.5](https://github.com/BlackGlory/fcdns/compare/v0.4.4...v0.4.5) (2022-07-30)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* cli ([abaa8c5](https://github.com/BlackGlory/fcdns/commit/abaa8c5344527605ffe4f2cb702f410f51b04bb7))
|
|
46
|
+
|
|
47
|
+
### [0.4.4](https://github.com/BlackGlory/fcdns/compare/v0.4.3...v0.4.4) (2022-07-30)
|
|
48
|
+
|
|
49
|
+
### [0.4.3](https://github.com/BlackGlory/fcdns/compare/v0.4.2...v0.4.3) (2022-07-30)
|
|
50
|
+
|
|
51
|
+
### [0.4.2](https://github.com/BlackGlory/fcdns/compare/v0.4.1...v0.4.2) (2022-07-26)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* add timeout option ([42e044b](https://github.com/BlackGlory/fcdns/commit/42e044b972e6a99739d078fb085814fb5ff67929))
|
|
57
|
+
|
|
58
|
+
### [0.4.1](https://github.com/BlackGlory/fcdns/compare/v0.4.0...v0.4.1) (2022-07-25)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Bug Fixes
|
|
62
|
+
|
|
63
|
+
* cli options ([0b4fa30](https://github.com/BlackGlory/fcdns/commit/0b4fa30ea4b41248a2593c5719030bcb2b55c5ea))
|
|
64
|
+
|
|
65
|
+
## [0.4.0](https://github.com/BlackGlory/fcdns/compare/v0.3.16...v0.4.0) (2022-07-25)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### ⚠ BREAKING CHANGES
|
|
69
|
+
|
|
70
|
+
* - Remove loose mode, because it doesn't work very well
|
|
71
|
+
- Remove microcaching, as caching is best implemented as a relay server
|
|
72
|
+
|
|
73
|
+
### Features
|
|
74
|
+
|
|
75
|
+
* remove loose mode and microcaching ([986e58f](https://github.com/BlackGlory/fcdns/commit/986e58f4cc88ab3c77f3149e7a5dc644ee370d79))
|
|
76
|
+
|
|
77
|
+
### [0.3.16](https://github.com/BlackGlory/fcdns/compare/v0.3.15...v0.3.16) (2022-07-25)
|
|
78
|
+
|
|
79
|
+
### [0.3.15](https://github.com/BlackGlory/fcdns/compare/v0.3.14...v0.3.15) (2022-04-16)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Bug Fixes
|
|
83
|
+
|
|
84
|
+
* hostname blacklist ([0e21a21](https://github.com/BlackGlory/fcdns/commit/0e21a214c13633ee4a3b2fe6353ae97d72f3fa65))
|
|
85
|
+
|
|
86
|
+
### [0.3.14](https://github.com/BlackGlory/fcdns/compare/v0.3.13...v0.3.14) (2022-04-16)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Features
|
|
90
|
+
|
|
91
|
+
* add hostname blacklist ([f196de1](https://github.com/BlackGlory/fcdns/commit/f196de13e742935ccdf4f67e1b54f73b057e15e8))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Bug Fixes
|
|
95
|
+
|
|
96
|
+
* make hostname list files optional ([ab2352f](https://github.com/BlackGlory/fcdns/commit/ab2352ff55dd05f947fa8eedd9dc6706e36c67ad))
|
|
97
|
+
|
|
98
|
+
### [0.3.13](https://github.com/BlackGlory/fcdns/compare/v0.3.12...v0.3.13) (2022-04-01)
|
|
99
|
+
|
|
100
|
+
### [0.3.12](https://github.com/BlackGlory/fcdns/compare/v0.3.11...v0.3.12) (2022-03-26)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Bug Fixes
|
|
104
|
+
|
|
105
|
+
* try fix the out of range problem about SOA serial ([ebc5275](https://github.com/BlackGlory/fcdns/commit/ebc5275cd7ec3074e07558b52ca93d492919f07c))
|
|
106
|
+
|
|
107
|
+
### [0.3.11](https://github.com/BlackGlory/fcdns/compare/v0.3.10...v0.3.11) (2022-03-26)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Bug Fixes
|
|
111
|
+
|
|
112
|
+
* make sure to throw errors ([85ee589](https://github.com/BlackGlory/fcdns/commit/85ee58964c0b20df765c1d61dc4e3fb5e2c95dfd))
|
|
113
|
+
|
|
114
|
+
### [0.3.10](https://github.com/BlackGlory/fcdns/compare/v0.3.9...v0.3.10) (2022-03-23)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
* edge case ([9162617](https://github.com/BlackGlory/fcdns/commit/9162617e2ace75b22e418674320f79858bbdc959))
|
|
120
|
+
|
|
121
|
+
### [0.3.9](https://github.com/BlackGlory/fcdns/compare/v0.3.8...v0.3.9) (2022-03-20)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Bug Fixes
|
|
125
|
+
|
|
126
|
+
* logging ([4902a1f](https://github.com/BlackGlory/fcdns/commit/4902a1f1390a83d02dbbf48395c74d791f5f27da))
|
|
127
|
+
|
|
128
|
+
### [0.3.8](https://github.com/BlackGlory/fcdns/compare/v0.3.7...v0.3.8) (2022-03-20)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Bug Fixes
|
|
132
|
+
|
|
133
|
+
* logging ([21a71d5](https://github.com/BlackGlory/fcdns/commit/21a71d5988da3b32564b058be51fe98366bb3ccf))
|
|
134
|
+
|
|
135
|
+
### [0.3.7](https://github.com/BlackGlory/fcdns/compare/v0.3.6...v0.3.7) (2022-03-20)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
* forward entire response instead of answers ([326fbaf](https://github.com/BlackGlory/fcdns/commit/326fbaf40bc028bdd8c1d3b7c5c540430aa0e7dd))
|
|
141
|
+
|
|
142
|
+
### [0.3.6](https://github.com/BlackGlory/fcdns/compare/v0.3.5...v0.3.6) (2022-03-03)
|
|
143
|
+
|
|
144
|
+
### [0.3.5](https://github.com/BlackGlory/fcdns/compare/v0.3.4...v0.3.5) (2022-02-28)
|
|
145
|
+
|
|
146
|
+
### [0.3.4](https://github.com/BlackGlory/fcdns/compare/v0.3.3...v0.3.4) (2022-02-28)
|
|
147
|
+
|
|
148
|
+
### [0.3.3](https://github.com/BlackGlory/fcdns/compare/v0.3.2...v0.3.3) (2022-01-02)
|
|
149
|
+
|
|
150
|
+
### [0.3.2](https://github.com/BlackGlory/fcdns/compare/v0.3.1...v0.3.2) (2021-12-21)
|
|
151
|
+
|
|
152
|
+
### [0.3.1](https://github.com/BlackGlory/fcdns/compare/v0.3.0...v0.3.1) (2021-12-17)
|
|
153
|
+
|
|
154
|
+
## [0.3.0](https://github.com/BlackGlory/fcdns/compare/v0.2.7...v0.3.0) (2021-12-17)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### ⚠ BREAKING CHANGES
|
|
158
|
+
|
|
159
|
+
* - The minimum version is Node.js v16
|
|
160
|
+
|
|
161
|
+
* upgrade dependencies ([c9072dc](https://github.com/BlackGlory/fcdns/commit/c9072dc80e8f6867aca7f0a9d05abec154195f21))
|
|
162
|
+
|
|
163
|
+
### [0.2.7](https://github.com/BlackGlory/fcdns/compare/v0.2.6...v0.2.7) (2021-12-12)
|
|
164
|
+
|
|
165
|
+
### [0.2.6](https://github.com/BlackGlory/fcdns/compare/v0.2.5...v0.2.6) (2021-10-17)
|
|
166
|
+
|
|
167
|
+
### [0.2.5](https://github.com/BlackGlory/fcdns/compare/v0.2.4...v0.2.5) (2021-10-14)
|
|
168
|
+
|
|
169
|
+
### [0.2.4](https://github.com/BlackGlory/fcdns/compare/v0.2.3...v0.2.4) (2021-10-06)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Features
|
|
173
|
+
|
|
174
|
+
* add loose mode ([561f7f9](https://github.com/BlackGlory/fcdns/commit/561f7f9181a5bd76e5093ed5e7fc65daadd4702d))
|
|
175
|
+
|
|
176
|
+
### [0.2.3](https://github.com/BlackGlory/fcdns/compare/v0.2.2...v0.2.3) (2021-09-18)
|
|
177
|
+
|
|
178
|
+
### [0.2.2](https://github.com/BlackGlory/fcdns/compare/v0.2.1...v0.2.2) (2021-07-12)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### Bug Fixes
|
|
182
|
+
|
|
183
|
+
* isHostnamePattern ([eee8e03](https://github.com/BlackGlory/fcdns/commit/eee8e03703e4cac962db6b2d05965f877051c30b))
|
|
184
|
+
|
|
185
|
+
### [0.2.1](https://github.com/BlackGlory/fcdns/compare/v0.2.0...v0.2.1) (2021-07-09)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Features
|
|
189
|
+
|
|
190
|
+
* improve hostname pattern ([f86b9a6](https://github.com/BlackGlory/fcdns/commit/f86b9a64c92160dc5995fa1dc77e0a1f2c1daa3d))
|
|
191
|
+
|
|
192
|
+
## [0.2.0](https://github.com/BlackGlory/fcdns/compare/v0.1.6...v0.2.0) (2021-07-09)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### ⚠ BREAKING CHANGES
|
|
196
|
+
|
|
197
|
+
* rename whitelist.txt to ip-whitelist.txt
|
|
198
|
+
|
|
199
|
+
### Features
|
|
200
|
+
|
|
201
|
+
* add hostname whitelist ([f96d2f3](https://github.com/BlackGlory/fcdns/commit/f96d2f38daf1506e168d7e380b09edad87165d06))
|
|
202
|
+
* support to parse ip addresses in whitelist ([10024db](https://github.com/BlackGlory/fcdns/commit/10024db45acb5201f67ecc64a7e2cf54ade396b4))
|
|
203
|
+
|
|
204
|
+
### [0.1.6](https://github.com/BlackGlory/fcdns/compare/v0.1.5...v0.1.6) (2021-05-17)
|
|
205
|
+
|
|
206
|
+
### [0.1.5](https://github.com/BlackGlory/fcdns/compare/v0.1.4...v0.1.5) (2021-05-14)
|
|
207
|
+
|
|
208
|
+
### [0.1.4](https://github.com/BlackGlory/fcdns/compare/v0.1.3...v0.1.4) (2021-05-08)
|
|
209
|
+
|
|
210
|
+
### [0.1.3](https://github.com/BlackGlory/fcdns/compare/v0.1.2...v0.1.3) (2021-05-08)
|
|
211
|
+
|
|
212
|
+
### [0.1.2](https://github.com/BlackGlory/fcdns/compare/v0.1.1...v0.1.2) (2021-04-22)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Bug Fixes
|
|
216
|
+
|
|
217
|
+
* handle uncaught errors ([a324ed8](https://github.com/BlackGlory/fcdns/commit/a324ed8241feb1aab029b5bd23d3f792bce42c58))
|
|
218
|
+
|
|
219
|
+
### [0.1.1](https://github.com/BlackGlory/fcdns/compare/v0.1.0...v0.1.1) (2021-04-14)
|
|
220
|
+
|
|
221
|
+
## 0.1.0 (2021-04-12)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
### Features
|
|
225
|
+
|
|
226
|
+
* init ([5185bb9](https://github.com/BlackGlory/fcdns/commit/5185bb9103536124b15192b340bd0a91d1eb49af))
|
package/README.md
CHANGED
|
@@ -14,20 +14,19 @@ Usage: fcdns [options]
|
|
|
14
14
|
DNS relay server with fact-checking.
|
|
15
15
|
|
|
16
16
|
Options:
|
|
17
|
-
-V, --version
|
|
17
|
+
-V, --version output the version number
|
|
18
18
|
--test-server <server>
|
|
19
19
|
--untrusted-server <server>
|
|
20
20
|
--trusted-server <server>
|
|
21
|
-
--port [port]
|
|
22
|
-
--timeout [seconds]
|
|
23
|
-
--ip-whitelist [filename]
|
|
24
|
-
--hostname-whitelist [filename]
|
|
25
|
-
--hostname-blacklist [filename]
|
|
26
|
-
--
|
|
27
|
-
--test-
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
-h, --help display help for command
|
|
21
|
+
--port [port] (default: "53")
|
|
22
|
+
--timeout [seconds] (default: "30")
|
|
23
|
+
--ip-whitelist [filename] (default: "ip-whitelist.txt")
|
|
24
|
+
--hostname-whitelist [filename] (default: "hostname-whitelist.txt")
|
|
25
|
+
--hostname-blacklist [filename] (default: "hostname-blacklist.txt")
|
|
26
|
+
--cache [filename] (default: "cache.db")
|
|
27
|
+
--test-timeout [ms] (default: "200")
|
|
28
|
+
--log [level] (default: "info")
|
|
29
|
+
-h, --help display help for command
|
|
31
30
|
```
|
|
32
31
|
|
|
33
32
|
Example:
|