当前位置:网站首页>How to check whether domain name resolution is effective?
How to check whether domain name resolution is effective?
2022-06-11 04:14:00 【China Kuwait tripartite】
One 、 How long can the modified or added resolution take effect ?
After adding or modifying the resolution record , Need to synchronize to DNS Server to take effect , The time required for this process is the resolution effective time .
generally , Newly added parsing record , If there is no error in the parsing settings , It will take effect immediately after it is successfully added .
If you are modifying the original parsing record , The resolution effective time is the same as that set before modification TTL It's about . For example, set before modification TTL The value is 300s, After modifying the record , stay 300s The new record will take effect in . If the local DNS There is no cache latency , The resolution record will take effect immediately .
Two 、 How to check whether domain name resolution is effective ?
1. Use ping Command check Domain name resolution Is it effective ( Apply to Windows、Linux Operating system host )
On the local host, click “ Search for ”, Input cmd, Open command window .
Then enter the following command to check whether the resolution is effective .
Ping domain name
Example : Check domain name example.com Whether the resolution of is effective
Carry out orders ping example.com
If ping The results show that IP Address and set the domain name resolution IP Address is consistent , It means that the resolution has taken effect . If you are prompted “ The host could not be requested ” perhaps ping Got IP Address and settings IP Different addresses , It indicates that the domain name resolution has not yet taken effect or that the domain name resolution settings are incorrect .
2. Use nslookup Command to check whether the domain name resolution is effective ( Apply to Windows、Linux Operating system host )
(1) verification A Type resolution : Used to specify the domain name IP Address resolution .
On the local host, click “ Search for ”, Input cmd, Open command window .
Then enter the following command to check whether the resolution is effective .
nslookup -qt=a Domain name or nslookup domain name
Example :nslookup example.com
If you get IP Address and set domain name resolution IP Address is consistent , It indicates that the domain name resolution has taken effect .
If you can't find it IP Address or echo IP Different addresses , It indicates that the domain name resolution is not effective or set incorrectly .
(2) verification CNAME Type is : Used to specify the domain name CNAME value , Apply to CDN、WAF Such as the scene .
adopt “win+R” Search command , Input “cmd” Open command operation window , Then check whether the resolution is effective through the following command
nslookup -qt=cname domain name
Example :nslookup -qt=cname example.com
If it shows CNAME Values and settings CANME The value has been , It indicates that the domain name resolution has taken effect .
If you don't get a message back or get it CNAME The value is inconsistent with the setting , It indicates that the domain name resolution settings are incorrect or not yet effective .
(3) verification MX Type resolution : Used to specify the address of the mailbox server .
On the local host, click “ Search for ”, Input cmd, Open command window .
Then enter the following command to check whether the resolution is effective .
nslookup -qt=mx domain name
Example :nslookup -qt=mx example.com
If the obtained address is consistent with the email address value set for domain name resolution , It means that the resolution has taken effect .
(4) verification NS Type resolution : Used to specify the resolution service provider DNS Address .
On the local host, click “ Search for ”, Input cmd, Open command window .
Then enter the following command to check whether the resolution is effective .
nslookup -qt=ns domain name
Example :nslookup -qt=ns example.top
If you get IP Address and settings of the service provider that resolves the domain name DNS The address is consistent , It means that the resolution has taken effect .
3、 ... and 、 Domain name resolution FAQs
If the correct domain name resolution cannot be obtained in the above methods to verify that the resolution is effective IP Address , It indicates that the domain name resolution is not effective or there is an error , We have discussed this situation many times before , I won't go into too much detail here . To put it simply, there are several situations :
1. Because the domain name has expired 、 The domain name status is abnormal due to the absence of real name , This will lead to domain name resolution errors ;
2.DNS Resolution cache not flushed , As a result, the latest parsing record cannot be obtained , In this case... Can be executed ipconfig /flushdns Command refresh cache ;
3. If the domain name resolution is normal , But the website can't be opened , In this case, it is necessary to check whether the server that builds the website binds the domain name correctly , Or whether the website has been filed .
Domain name resolution It is the key to ensure that the website can be accessed and used normally , So make sure that the domain name resolution settings are correct , If the domain name does not take effect, contact the domain name service provider to solve it in time .
边栏推荐
猜你喜欢
随机推荐
MySql索引
Guanghetong 5g module shines brightly and has won the "2021 science and technology award of China Electronics Society"
How to invest in programming knowledge and reduce the impact of knowledge failure
2022 love analysis · privacy computing vendor panoramic report | love Analysis Report
Market prospect analysis and Research Report of welding laser in 2022
未來已來,5G-Advanced時代開啟
Linq. pdf
Docker builds a redis Cluster - three machines, three masters and three slaves
Use tool classes to read Excel files according to certain rules
Feature selection algorithm based on bare bones particleswarm optimization
Exploitation and utilization of clickjacking vulnerability
编译原理笔记之词法分析器
Vulkan-官方示例解读-Shadows(光栅化)
Esp32 development -lvgl display picture
Several time synchronization methods of Beidou timing system (GPS timing equipment)
Matter protocol
检测php网站是否已经被攻破的方法
Esp32 porting lvgl
Possible problems with password retrieval function (supplementary)
给你一个项目,你将如何开展性能测试工作?









![[network] socket programming](/img/df/2afc300bfc2dd319247a4b75ef7e2c.png)