Skip to content

请教各位下对这种x.x.x.x.in-addr.arpa域名的请求正确的处理方式是什么? #39

Answered by laggardkernel
mkanako asked this question in Q&A
Discussion options

You must be logged in to vote

Update 1: 配置方案放在了最后

这是 PTR (Pointer to a canonical name) 记录 查询,查询对应于某个 IP 的 host 名。我把 mosdns 作为了 dnsmasq 的下游,并在 dnsmasq 开启了 log。根据 dnsmasq 中记录的查询日志,常见的 PTR 查询有以下几种(本地路由器网段 192.168.2.x)

# 反查 192.168.2.1 路由器域名
Jan 16 00:43:51 dnsmasq[39918]: 20643 127.0.0.1/60387 query[PTR] 1.2.168.192.in-addr.arpa from 127.0.0.1

# 224.0.0.251 是 multicast DNS 组播地址,多办由 macOS 上 mDNSResponser 发起,反查组播的域名?
Jan 16 01:23:53 dnsmasq[39918]: 21265 127.0.0.1/50233 query[PTR] 251.0.0.224.in-addr.arpa from 127.0.0.1

# 239.255.255.250是SSDP(简单服务发现协议),UPNP服务使用。和上边差不多,查询 SSDP 服务对应域名
Jan 16 00:43:52 dnsmasq[39918]: 20645 127.0.0.1/65052 query[PTR] 250.255.255.239.in-addr.arpa from 127.0.0.1

# DNS Service Discovery (DNS-S…

Replies: 4 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@IrineSistiana
Comment options

@laggardkernel
Comment options

@CalmLong
Comment options

@IrineSistiana
Comment options

@CalmLong
Comment options

Answer selected by mkanako
Comment options

You must be logged in to vote
3 replies
@IrineSistiana
Comment options

@laggardkernel
Comment options

@kuyagic
Comment options

Comment options

You must be logged in to vote
6 replies
@IrineSistiana
Comment options

@CalmLong
Comment options

@m2acgi
Comment options

@capyour
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants