学习
实践
活动
专区
工具
TVP
写文章

系统:Ubuntu v20,使用apt安装的bind9,域名为legendmail.fun 公网ip:139.155.243.116

name.conf.local文件

zone "legendmail.fun" IN {
	type master;
	file "/etc/bind/legendmail.fun.zone";
};

//139.155.243.116
zone "243.155.139.in-addr.arpa" IN {
        type master;
        file "/etc/bind/139.155.243.zone";
};

legendmail.fun.zone文件

$TTL 1D
@       IN SOA  dns.legendmail.top. root.legendmail.top. (
                                        20191124      ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@                       IN      NS      dns.legendmail.top.
dns.legendmail.top.           IN      A       139.155.243.116
legendmail.top.         IN      A       8.8.8.8

139.155.243.zone文件

$TTL 1D
@       IN SOA  dns.legendmail.fun. root.legendmail.fun. (
                                        20181125      ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@               IN      NS         dns.legendmail.fun.
116              IN      PTR        legendmail.fun.

正向解析

; <<>> DiG 9.16.1-Ubuntu <<>> -t a legendmail.fun
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34190
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;legendmail.fun.			IN	A

;; ANSWER SECTION:
legendmail.fun.		600	IN	A	139.155.243.116

;; Query time: 128 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Oct 30 00:04:57 CST 2021
;; MSG SIZE  rcvd: 59

反向解析

; <<>> DiG 9.16.1-Ubuntu <<>> -x 139.155.243.116
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48541
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

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

;; AUTHORITY SECTION:
in-addr.arpa.		1800	IN	SOA	ptr1.dnspod.net. admin.ptr1.dnspod.net. 1593538200 604800 86400 2419200 604800

;; Query time: 192 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Oct 30 00:05:01 CST 2021
;; MSG SIZE  rcvd: 114
用户9132290用户9132290提问于

回答过的其他问题

80端口备案一定要绑定固定IP才可以吗?

Im小泽用户为本,科技向善

云服务器一般已经是固定IP了,如果时专线或者企业宽度备案需要咨询运营商

我买了个域名,怎么绑定邮箱?

Im小泽用户为本,科技向善

具体是什么免费办呢?企业邮箱?如果腾讯企业邮箱的话登录企业微信后台,找到邮箱设置专属域名即可,然后前往对应的解析服务商按提示添加解析

备案3个域名就要方案书?

Im小泽用户为本,科技向善

这个取决于地区,每个地区要求不一样的,另外这个属于管局要求,哪个服务商都应该一样的

扫码关注腾讯云开发者

领取腾讯云代金券