Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

在dns请求的记录里,没有原始请求的地址啊,只有请求的域名 #3

Closed
lupus721 opened this issue Jun 17, 2016 · 2 comments
Labels

Comments

@lupus721
Copy link

在dns请求的记录里,没有原始请求的地址啊,只有请求的域名,这个功能是否会在后期加上还是?

看到在weblog请求里有原始的ip地址

@Medicean
Copy link
Contributor

Medicean commented Jun 17, 2016

这个从协议上是拿不到原始请求的地址的。如果你没法使用 http 请求,可以通过命令聚合方式拿到你要的地址。

举个例子,测试环境在 mac osx 下,Linux 有所不同需要略微调整:

ping -c 3 `ifconfig en0|grep "inet "|awk '{print $2}'`.test.dnslog.link

效果如下:

➜  ~ ping -c 3 `ifconfig en0|grep "inet "|awk '{print $2}'`.test.dnslog.link
PING 192.168.10.167.test.dnslog.link (106.186.118.146): 56 data bytes
64 bytes from 106.186.118.146: icmp_seq=0 ttl=52 time=259.491 ms
64 bytes from 106.186.118.146: icmp_seq=1 ttl=52 time=307.566 ms
64 bytes from 106.186.118.146: icmp_seq=2 ttl=52 time=352.757 ms

--- 192.168.10.167.test.dnslog.link ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 259.491/306.605/352.757/38.082 ms
➜  ~

希望能帮到你。

@lupus721
Copy link
Author

嗯,谢谢,理解你的意思了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants