V2Fly Team
66e203f156
DNS: refine skipRoutePick ( #558 )
2020-12-30 18:35:19 +08:00
maskedeken
8c5b392f27
DNS: add DNS over QUIC support ( #534 )
2020-12-25 19:13:50 +08:00
Loyalsoldier
c27ed16e6a
Fix: DNS compatible with localhost
nameserver ( #530 )
2020-12-19 12:17:55 +08:00
Ye Zhihao
d8c03f10b5
Refactoring: DNS App ( #169 )
...
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2020-12-18 17:24:33 +08:00
Loyalsoldier
d9db22093b
Fix: write to log without clientIP ( #517 )
2020-12-15 16:59:23 +08:00
Loyalsoldier
166d1afee5
DNS: add clientip for specific nameserver ( #504 )
2020-12-12 07:15:29 +08:00
loyalsoldier
784775f689
Refine code according to golangci-lint results
2020-10-11 19:22:46 +08:00
Loyalsoldier
807922f883
Reduce timeout & fix ineffassign ( #290 )
2020-10-09 16:32:12 +08:00
Loyalsoldier
454528353d
Fix misspelling according to goreportcard result ( #282 )
2020-10-08 08:53:15 +08:00
Loyalsoldier
bb44d01096
Format proto files using clang-format according to google style ( #264 )
...
* Format proto files using clang-format according to google style
* Regenerate pb.go files
2020-10-05 08:36:40 +08:00
loyalsoldier
b181045b0c
Errorgen: support to run outside of GOPATH
2020-10-04 13:06:12 +08:00
loyalsoldier
ec0c3f181d
DNS: refine local TLDs for localhost DNS
2020-09-26 22:30:44 +08:00
loyalsoldier
323ef03f02
Minor fixes
2020-09-01 08:46:55 +08:00
Vigilans
c973b5a484
Fix github.com/v2fly/v2ray-core/issues/146
2020-08-31 12:40:27 +08:00
Vigilans
47c997d75e
Fix github.com/v2fly/v2ray-core/issues/146
2020-08-31 12:21:56 +08:00
loyalsoldier
f12f76582f
Fix according to staticcheck result
...
staticcheck repo: https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck
2020-08-30 23:41:15 +08:00
Loyalsoldier
ef460f68f8
Adjust Protocol Buffers ( #109 )
...
* Update protoc binary executable files to v3.13.0
* Write proto files in more standard way
* Make go generate & vprotogen compatible with protoc-gen-gofast
* Regenerate pb.go files according to new proto files
* Clean go.sum by running go mod tidy
* Implement mustEmbedUnimplementedServiceServer for gPRC services
2020-08-24 12:10:26 +00:00
loyalsoldier
00b4217aab
Fix: loging empty rules & DNS
2020-08-22 19:07:14 +08:00
Vigilans
22b4e68a2d
Log matched rules and DNS to use during priority matching
...
2. Dotless domain support in static host & modify first letter's captial in log
2020-08-16 22:18:28 +08:00
Vigilans
dfeaef75e7
Refactor DNS Server to record original rule of domain matchers
2020-08-16 22:18:12 +08:00
Vigilans
1e222425b6
Amend domain matcher with returning values of all matched subdomains
2020-08-13 15:26:30 +08:00
Vigilans
c74a33f827
Amending domain matcher with returning array of all matches
2020-08-11 13:31:04 +08:00
Vigilans
17f51f412c
Dotless domain support in built-in DNS
2020-08-09 16:51:06 +08:00
Darhwa
e9c891d5b5
Enable ForceAttemptHTTP2 on DoH client
2020-07-31 17:07:56 +08:00
Agioi Theodoroi
bbd3988f3d
clean up code
2020-06-27 07:51:42 +08:00
DuckSoft
780318c5c8
handle dns.PackMessage error
...
this will fix #2599
2020-06-25 16:22:56 +08:00
DuckSoft
bde766770d
dohdns.go: multiple typo fixes
2020-06-25 14:10:24 +08:00
Roger Shimizu
90af5f19ba
Apply Debian's patch to upstream
2020-06-24 12:57:03 +08:00
Shelikhoo
09b81b78c3
regenerate pb data
2020-06-08 16:16:32 +08:00
vcptr
5d13ec9196
code style optmize in dispatch func
2020-03-12 00:42:29 +08:00
vcptr
04a0c04934
doh route strategy optimized
2020-03-12 00:42:29 +08:00
mzz2017
7f4f8091f9
feat/fix: dns query subscriptions group by A and AAAA. fix problem that empty result would poll dns server in DoH mode
2020-03-12 00:42:29 +08:00
mzz2017
4a663f2b25
fix( #2211 ): problem that AAAA query returns A result
2020-03-12 00:42:29 +08:00
ghost
02b658cd2b
revert broken dns changes
2020-01-01 10:23:14 +08:00
vcptr
d6df5d7cf9
doh URL controls full path
2019-12-09 09:37:35 +08:00
vcptr
b4b4b3d032
doh config use RFC8484 url format
2019-12-06 12:55:14 +08:00
vcptr
59e3a2a67c
add comments to exported func
2019-11-26 13:24:46 +08:00
vcptr
ceb77ac8f5
only add to ipIndexMap if GeoIP is configured
...
clearer logging for expectIPs
refactor dns init code
optimal to default port logic
clear message exit if doh met error
2019-11-26 13:05:19 +08:00
vcptr
6ef77246ab
add DOH dns client
2019-11-25 15:41:36 +08:00
vcptr
3b9514ec9f
minor optm
2019-11-22 17:57:16 +08:00
vcptr
fa30713e76
minor changes to dns from pr #2037
2019-11-22 17:40:24 +08:00
weaving118
debb7f0c44
ignore if domain already lookup failed
2019-11-21 02:32:09 +08:00
weaving118
1345185b81
add errExpectedIPNonMatch and return nil if empty response
2019-11-21 01:09:23 +08:00
weaving118
e916a3b29d
update confip ip to expectIPs
2019-11-20 17:20:33 +08:00
weaving118
101f5d32fa
add ip match feature for dns
2019-11-18 23:48:42 +08:00
Kirill Motkov
0401a91ef4
Some code improvements
...
* Rewrite empty string checks more idiomatically.
* Change strings.ToLower comparisons to strings.EqualFold.
* Rewrite switch statement with only one case as if.
2019-06-28 17:53:44 +03:00
Kslr
66cba31123
return error instead of panic, fixes #1638
2019-04-14 08:57:01 +08:00
Darien Raymond
95ed5a5ff8
comments
2019-02-23 00:01:23 +01:00
Darien Raymond
7e5e080488
move sniffing result to session
2019-02-22 16:58:16 +01:00
Darien Raymond
f41b07395a
fix error propagation for nxdomain
2019-02-21 15:17:04 +01:00
Darien Raymond
bb8465e1d6
fix dns parsing for unknown header types
2019-02-21 15:04:33 +01:00
Darien Raymond
9957c64b4a
correctly propagate dns errors all the way through.
...
the internal dns system can correctly handle the cases where:
1) domain has no A or AAAA records
2) domain doesn't exist
fixes #1565
2019-02-21 13:43:48 +01:00
Darien Raymond
c27050ad90
fix usability for both IPv4 and v6 in static dns mapping
2019-02-21 00:03:31 +01:00
Darien Raymond
6c31049295
add some log to dns lookup
2019-02-12 21:04:28 +01:00
Darien Raymond
2aa0c08709
check domain name
2019-02-06 21:02:03 +01:00
Darien Raymond
836440c61a
dns outbound proxy
2019-02-06 10:21:04 +01:00
Darien Raymond
1ab94fed79
optimize v2ctl size
2019-02-01 20:08:21 +01:00
Darien Raymond
3b02c02ab4
Revert "move init func to separate files"
...
This reverts commit 3de50a6412
.
2019-02-01 16:56:43 +01:00
Darien Raymond
3de50a6412
move init func to separate files
2019-02-01 16:21:42 +01:00
Darien Raymond
ffb3793b26
support domain to domain mapping in static host
2019-01-30 21:04:29 +01:00
Darien Raymond
44d87ed642
inbound tag for dns requests
2019-01-16 20:32:41 +01:00
Darien Raymond
4468c60b95
remove usage on assert lib
2019-01-06 23:30:38 +01:00
Darien Raymond
b52725cf65
DialUDP function
2019-01-05 21:43:22 +01:00
Darien Raymond
1c830472b9
dns protocol package
2018-12-29 09:03:32 +01:00
Darien Raymond
daa8c9c5da
rename NameServerInterface to Client
2018-12-28 20:28:31 +01:00
Darien Raymond
fc1e660c27
change net.IP to net.Address
2018-12-28 20:15:22 +01:00
Darien Raymond
057e271588
update proto lib
2018-12-01 17:39:51 +01:00
Darien Raymond
39a092b178
fix #1427
2018-11-22 19:07:49 +01:00
Darien Raymond
9cad27e9bd
skip answer if it is not A or AAAA record
2018-11-22 17:16:44 +01:00
Darien Raymond
1cc3a4832d
fix logic for adding localhost dns
2018-11-22 16:29:09 +01:00
Darien Raymond
bb8cab9cc7
change from map to slice
2018-11-20 17:15:11 +01:00
Darien Raymond
bb1efdebd1
support querying either IPv4 or IPv6 dns
2018-11-19 20:42:02 +01:00
Darien Raymond
afc613f8f3
test case for edns0_subnet
2018-11-19 14:13:20 +01:00
Darien Raymond
d013e8069d
switch to stdlib for dns queries
2018-11-19 13:13:02 +01:00
Darien Raymond
24288a74a2
update tests
2018-11-15 11:17:20 +01:00
Darien Raymond
a14fae4b35
fix lint warnings
2018-11-13 23:19:58 +01:00
Darien Raymond
f7b96507f9
simplify buffer extension
2018-11-02 21:34:04 +01:00
Darien Raymond
58e2ed3381
remove closure on ReadFullFrom
2018-11-02 15:01:33 +01:00
Wuxiang
3a4371ad21
fix a typo
2018-10-29 19:24:17 +08:00
Darien Raymond
307aac26b3
simplify dependency resolution
2018-10-22 11:26:22 +02:00
Darien Raymond
a5dcb0f13e
refactor dependency resolution
2018-10-21 10:27:13 +02:00
Darien Raymond
fb7dd1a577
fix #1322
2018-10-19 06:45:10 +02:00
Darien Raymond
abf0cb1ec4
move function to features
2018-10-13 15:15:49 +02:00
Darien Raymond
d730637239
Require Type() for Feature
2018-10-12 23:57:56 +02:00
Darien Raymond
c3170dfc8e
fix dns client
2018-10-11 23:09:15 +02:00
Darien Raymond
b4821c5ed5
move policy and dnsClient
2018-10-11 22:34:31 +02:00
Darien Raymond
b6dc31d3fe
first part to move feature interfaces into dedicated directory
2018-10-11 20:43:37 +02:00
Darien Raymond
091fa6ad23
use new errorgen
2018-09-30 23:08:41 +02:00
Darien Raymond
d55fbd7f8d
simplify error creation
2018-09-30 18:39:53 +02:00
Darien Raymond
00ea6e3cb2
update protobuf generated files
2018-09-30 18:39:28 +02:00
Darien Raymond
909cb9b27a
announce deprecated proto settings
2018-09-21 16:54:06 +02:00
Darien Raymond
5649c7ba2d
support regex domain type in dns
2018-09-19 16:10:42 +02:00
Darien Raymond
383b84e7dd
unified tproxy option
2018-09-17 15:12:58 +02:00
Darien Raymond
d068f357bd
update proto lib
2018-09-14 11:00:59 +02:00
Darien Raymond
f9436b3556
skip DNS tests on windows
2018-09-10 23:43:17 +02:00
Darien Raymond
813fdb6235
Revert "move away from dns.Server.ListenAndServe"
...
This reverts commit f0a801142d
.
2018-09-10 23:41:52 +02:00
Darien Raymond
f0a801142d
move away from dns.Server.ListenAndServe
2018-09-10 22:58:37 +02:00
Darien Raymond
dad0892a39
wait until dns server is up
2018-09-10 22:29:35 +02:00
Darien Raymond
156af4241d
add some logs
2018-09-10 22:12:07 +02:00
Darien Raymond
eb05a92592
dont start periodic task until necessary
2018-08-29 23:00:01 +02:00
Darien Raymond
89fa9367ba
release buffer on error
2018-08-29 16:42:14 +02:00
Darien Raymond
f227e85b54
support per-domain prioritized name server
2018-08-24 21:51:03 +02:00
Darien Raymond
059dfdbb97
doc for strmatcher interface
2018-08-20 15:39:58 +02:00
Darien Raymond
4b63638dca
update protobuf lib
2018-07-25 00:36:28 +02:00
Darien Raymond
e3cc852c57
udp dispatcher takes context with dispatching requests. fixes #1182 .
2018-07-03 21:38:02 +02:00
Darien Raymond
463a9cbef8
tweak dns options
2018-07-02 22:22:04 +02:00
Darien Raymond
4c18b61e6c
fix dns query for CNAME
2018-07-01 17:15:29 +02:00
Darien Raymond
4368edf87c
switch to pubsub in dns service
2018-07-01 12:38:40 +02:00
Darien Raymond
c9e35bb1ba
fix localnameserver creation
2018-06-27 11:23:39 +02:00
Darien Raymond
69820788b5
fix #1165
2018-06-27 09:12:55 +02:00
Darien Raymond
4477e7436b
simplify client ip design
2018-06-26 23:23:59 +02:00
Darien Raymond
d5f7728acd
support subdomain matching in dns hosts
2018-06-26 22:34:05 +02:00
Darien Raymond
ed34adf967
set udp size in edns
2018-06-26 17:26:34 +02:00
Darien Raymond
e9e9de55ac
support client subnet
2018-06-26 17:14:51 +02:00
Darien Raymond
f743b1e591
remove task member in dns.Server.
2018-06-26 15:35:22 +02:00
Darien Raymond
2fb77d6911
consume context in local nameserver.
2018-06-26 15:16:45 +02:00
Darien Raymond
9cfb2bfd51
simplify classic dns server
2018-06-26 15:04:47 +02:00
Darien Raymond
13f3c356ca
unified task package
2018-05-27 13:02:29 +02:00
Darien Raymond
68da956fc4
re-generate code
2018-05-25 11:56:01 +02:00
Darien Raymond
1d001c090b
comments
2018-04-19 21:33:18 +02:00
Darien Raymond
83625618ee
re-init maps when they are empty
2018-04-07 23:07:30 +02:00
Darien Raymond
9f198d7e3d
fix lint errors
2018-04-04 00:29:30 +02:00
wuxiang
3f19d09878
update some comments
2018-04-03 17:11:54 +08:00
Jinqiu Yu
33e090befe
Clean useless code
2018-03-23 14:20:14 +08:00
Darien Raymond
649119493b
remove pending request from cache when error. fixes #942
2018-03-10 09:34:38 +01:00
Darien Raymond
0a3b3d0b6d
refactor UDPNameServer clean up task
2018-02-22 17:29:21 +01:00
Darien Raymond
88b25d38cb
simplify context retrieval
2018-02-21 17:05:29 +01:00
Darien Raymond
dffaef60b4
use periodic task in dns.Server
2018-02-08 17:00:22 +01:00
Darien Raymond
efcb567273
remove context in struct
2018-02-08 15:39:46 +01:00
Darien Raymond
b5caea67ac
gofmt
2018-01-13 00:07:37 +01:00
Darien Raymond
6a7887b655
fix LocalNameServer
2018-01-10 13:32:48 +01:00
Darien Raymond
292d7cc353
massive refactoring for interoperability
2018-01-10 12:22:37 +01:00
Darien Raymond
bc52a105ff
rename dns.Server
2017-12-28 23:19:41 +01:00
Darien Raymond
2bf5a008f0
fix error levels
2017-12-27 22:25:12 +01:00
Darien Raymond
e736c08794
report pack error instead of panic
2017-12-23 21:11:17 +01:00
Darien Raymond
35545cb2db
fix test
2017-12-20 00:51:46 +01:00
Darien Raymond
ab4f245313
overrideable dns
2017-12-19 23:55:09 +01:00
Darien Raymond
f4c35db968
merge log into common log
2017-12-19 21:28:12 +01:00
Darien Raymond
d43a23aa96
move error generator to common
2017-12-03 01:04:57 +01:00
Darien Raymond
fd8db49dc9
generalized event handler
2017-11-28 23:41:20 +01:00
Darien Raymond
3214a5078c
customizable policy
2017-11-27 22:09:30 +01:00
Darien Raymond
afacee9e05
refactor
2017-11-19 21:43:20 +01:00
Darien Raymond
8fb69fc2b6
send IPv6 query only to supported server.
2017-11-19 20:42:34 +01:00
Darien Raymond
878d412c6a
handle truncated DNS messages. fix #713
2017-11-18 20:00:09 +01:00
Darien Raymond
88b521c77e
remove debug info
2017-11-17 03:03:27 +00:00
Darien Raymond
0dbfb66126
clean up dns package
2017-11-15 00:36:14 +01:00
Darien Raymond
74cf833758
fully migrate to new assertion lib
2017-10-24 16:15:35 +02:00
Darien Raymond
1c856a46ab
step 1 to remove reference to net package
2017-08-29 12:56:57 +02:00
Darien Raymond
c13b212fc6
remove unused variables
2017-06-22 21:07:16 +02:00
Darien Raymond
2e756cdaa8
refactor
2017-04-27 11:54:15 +02:00