DN42入坑指南(四)基于powerdns配置IP反向解析

规划

#将属于我自己的IP段儿配置反向解析(172.20.58.192/27)

#反向解析的区域名字:192/27.58.20.172.in-addr.arpa

172.20.58.193   IN PTR  as4242420524-la.wsfnk.dn42
172.20.58.194   IN PTR  as4242420524-hk.wsfnk.dn42
172.20.58.195   IN PTR  as4242420524-cq.wsfnk.dn42
172.20.58.196   IN PTR  as4242420524-sj.wsfnk.dn42
172.20.58.197   IN PTR  as4242420524-gb.wsfnk.dn42
172.20.58.198   IN PTR  as4242420524-bj.wsfnk.dn42

配置


解析验证

[root@DN42-HK ~]# dig @172.23.0.53 -x 172.20.58.197

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> @172.23.0.53 -x 172.20.58.197
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43681
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;197.58.20.172.in-addr.arpa.    IN  PTR

;; ANSWER SECTION:
197.58.20.172.in-addr.arpa. 900 IN  CNAME   197.192/27.58.20.172.in-addr.arpa.
197.192/27.58.20.172.in-addr.arpa. 60 IN PTR    as4242420524.gb.wsfnk.dn42.

;; Query time: 130 msec
;; SERVER: 172.23.0.53#53(172.23.0.53)
;; WHEN: Thu Apr 09 22:22:32 CST 2020
;; MSG SIZE  rcvd: 120
微信打赏微信打赏

如果文章对你有帮助,欢迎点击上方按钮打赏作者

最后编辑于:2022/11/30作者: 辣条①号

现在在做什么? 接下来打算做什么? 你的目标什么? 期限还有多少? 进度如何? 不负遇见,不谈亏欠!

暂无评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

arrow grin ! ? cool roll eek evil razz mrgreen smile oops lol mad twisted wink idea cry shock neutral sad ???