当前位置:网站首页>A记录、MX记录、CNAME记录这些名词是什么意思?
A记录、MX记录、CNAME记录这些名词是什么意思?
2022-04-22 12:20:00 【SUNbrightness】
A 记录(Address)
是用来指定主机名(或域名)对应的IP地址记录。用户可以将该域名下的网站服务器指向到自己的web server上。同时也可以设置您域名的二级域名。
别名记录(CNAME)
也被称为规范名字。这种记录允许您将多个名字映射到同一台计算机。 通常用于同时提供WWW和MAIL服务的计算机。
例如,有一台计算机名为“host.eblhost.cn”(A记录),它同时提供WWW和MAIL服务。为了便于用户访问服务,可以为该计算机设置两个别名(CNAME):WWW和MAIL。 这两个别名的全称就是“www.eblhost.cn” 和“mail.eblhost.cn”。实际上他们都指向“host.eblhost.cn”。
CNAME还有一个特别的好处,就是当您拥有多个域名需要指向同一服务器IP,此时您就可以将一个域名做A记录指向服务器IP,然后将其他的域名做别名到之前做A记录的域名上。当您的服务器IP地址变更时,您就可以不必麻烦的一个一个域名更改指向了,只需要更改做A记录的那个域名所指向的IP,其他做别名的那些域名的指向也将自动更改到新的IP地址上了。
NS记录(Name Server)
Name server是指域名的DNS服务器,DNS服务器可以在注册域名时设定或后期进行更改。
利用NS记录,您可以针对每个域名或子域名来设定NS记录。设定以后,相当于把该域名的解析权交给了对应的DNS服务器。
MX记录(Mail eXchanger)
是邮件交换记录,它指向一个邮件服务器,用于电子邮件系统发邮件时根据 收信人的地址后缀来定位邮件服务器。例如,当Internet上的某用户要发一封信给 [email protected] 时,该用户的邮件系统通过DNS查找mydomain.com这个域名的MX记录,如果MX记录存在, 用户计算机就将邮件发送到MX记录所指定的邮件服务器上。
检查MX记录是否存在的方法
进行DNS查询的一个非常有用的工具是nslookup,可以使用它来查询DNS中的各种数据。可以在Windows的命令行下直接运行nslookup进入一个交互模式,在这里能查询各种类型的DNS数据。
DNS的名字解析数据可以有各种不同的类型,有设置这个zone的参数的SOA类型数据,有设置名字对应的IP地址的A类型数据,有设置邮件交换的 MX类型数据。这些不同类型的数据均可以通过nslookup的交互模式来查询,在查询过程中可以使用 set type命令设置相应的查询类型。
如:
C:\>nslookup
Default Server: [202.106.184.166]
Address: 202.106.184.166
> set type=mx
> sina.com.cn
Default Server: [202.106.184.166]
Address: 202.106.184.166
Non-authoritative answer:
sina.com.cn MX preference = 10, mail exchanger = sinamx.sina.com.cn
sina.com.cn nameserver = ns1.sina.com.cn
sina.com.cn nameserver = ns3.sina.com.cn
sinamx.sina.com.cn internet address = 202.106.187.179
sinamx.sina.com.cn internet address = 202.106.182.230
ns1.sina.com.cn internet address = 202.106.184.166
ns3.sina.com.cn internet address = 202.108.44.55
如果所要查的某域名的MX记录不存在,则出现与以下类似的提示:
C:\>nslookup
> set type=mx
> amafdsfxit.com.cn
Default Server: [202.106.184.166]
Address: 202.106.184.166
*** 202.106.184.166 can't find amaxit.com.cn: Non-existent domain
转自
版权声明
本文为[SUNbrightness]所创,转载请带上原文链接,感谢
https://blog.csdn.net/SUNbrightness/article/details/90180808
边栏推荐
- 【并发编程050】内存屏障的种类以及说明?
- Where have all the Internet people who left their jobs gone?
- Électricien deuxième Conférence
- canvas系列教程01——直线、三角形、多边形、矩形、调色板
- Father of MySQL: the code should be written at once, not later
- MySQL学习第四弹——多表查询分类以及案例练习源码详解
- LeetCode_DFS_中等_200.岛屿数量
- LeetCode 34、在排序数组中查找元素的第一个和最后一个位置
- What does 0ul or 1ul in STM32 mean?
- 低频(LF)RFID 智能终端
猜你喜欢

【并发编程054】多线程的状态及转换过程?

PyTorch处理RNN输入变长序列padding
![[in depth understanding of tcallusdb technology] data interface description for reading the specified location in the list - [list table]](/img/0d/1f70f1dba4e746d81eccb7ad3cea5d.png)
[in depth understanding of tcallusdb technology] data interface description for reading the specified location in the list - [list table]

Comparison of data protection modes between Oracle data guard and Jincang kingbasees cluster
![【深入理解TcaplusDB技术】更替列表指定位置数据接口说明——[List表]](/img/ed/cccd5dee09d2f0a3e6c788bd265b36.png)
【深入理解TcaplusDB技术】更替列表指定位置数据接口说明——[List表]

When the new version of redis is released, do you still think redis is a single thread?

Ali's internship offer successfully landed, which is very important

【并发编程055】如下守护线程是否会执行finally模块中的代码?
![JS [detailed explanation] closure](/img/3d/1db37e18300c56848ef00928392d0a.png)
JS [detailed explanation] closure

Low frequency (LF) RFID intelligent terminal
随机推荐
Smart business card applet creates business card page function and realizes key code
.NET宝藏API之:OutputFormatter,格式化输出对象
JS [detailed explanation] scope
订货系统打破批发企业瓶颈期,助力企业数字化转型
Redis新版本发布,你还认为Redis是单线程?
NLP dataset collation (updating)
Tencent cloud domain name binding
Cas 4 - 1.7: transfert de fichiers (et recherche d'ensembles)
NLP数据集整理(更新中)
Free trial for the first three months! Borui data alarm platform onealert is in progress
Ali's internship offer successfully landed, which is very important
Synchronized lock and its expansion
MySQL之父:代码应该一次写成,而不是后面再改
ORB_SLAM3学习:Tracking 线程介绍
[concurrent programming 052] talk about double check lock and its advantages?
Efr32 crystal calibration guide
What does 0ul or 1ul in STM32 mean?
[in depth understanding of tcallusdb technology] example code - asynchronous call interface
[in depth understanding of tcallusdb technology] data interface description for reading the specified location in the list - [list table]
【并发编程055】如下守护线程是否会执行finally模块中的代码?