-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lost CNAME record when answering dns requests? #23
Comments
|
It's working after I set this option to |
Add more informations about why I report this issue. If dns server didn't answer
|
[groups]
[groups.baidu]
dns = ["114.114.114.114"]
fastest_v4 = true
rules = ["baidu.com"] $ dig baidu.com
...
;; ANSWER SECTION:
baidu.com. 501 IN A 220.181.38.148
;; Query time: 142 msec
...
$
$ curl http://www.baidu.com -I
HTTP/1.1 200 OK
Accept-Ranges: bytes
... time="2020-05-18T15:24:19+08:00" level=info msg="match by rules" domain=baidu.com. group=baidu src=127.0.0.1 type=A typically, upstream dns servers (like |
You use This is the result when I use your configs.
|
➜ ~ dig www.baidu.com
; <<>> DiG 9.11.3-1ubuntu1.11-Ubuntu <<>> www.baidu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36387
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.baidu.com. IN A
;; ANSWER SECTION:
www.a.shifen.com. 242 IN A 220.181.38.149
;; Query time: 128 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 18 17:49:41 CST 2020
;; MSG SIZE rcvd: 74
➜ ~ curl http://www.baidu.com -v 2>&1 | grep Connected
* Connected to www.baidu.com (220.181.38.149) port 80 (#0) time="2020-05-18T17:49:40+08:00" level=info msg="match by rules" domain=www.baidu.com. group=baidu src=127.0.0.1 type=A
time="2020-05-18T17:49:43+08:00" level=info msg="hit cache" domain=www.baidu.com. src=127.0.0.1 type=A |
I have tried on an ubuntu virtual machine run on my laptop, and set the dns to the same dns, the curl works perfectly. I think this is a OSX related issue only. |
v0.14.1 released: keep |
Confirmed, the issue has gone. Thanks.
|
ubuntu user, got same issue after upgrade chrome version to v83, also fixed use ts-dns v0.14.1. |
I'm a new user for
ts-dns
, it's really a useful tool, but I meet a problem.Request results from
114.114.114.114
, you can see there is anCNAME
record.Results from
ts-dns
, the CNAME record lost.Here is my config, are there something wrong with my config? version 0.14.0 on MACOS.
The text was updated successfully, but these errors were encountered: