How to test whether domain name resolution is effective in application layer DNS? ping nslookup

After the resolution record set is added, how long does it take for domain name resolution to take effect?


After adding the resolution record set of the domain name, the resolution can only take effect after being synchronized to the DNS server. The time required for this process is the resolution effective time.

  • When a new parsing record set is added, it usually takes effect immediately after the addition.
  • If you modify an already added parsing record, the parsing effective time will not be later than the TTL value of the parsing record before modification. For example, if the TTL value before modification is 300s, the new analysis will take effect within 300s. If there is no cache delay in the local DNS, the modification will take effect immediately.

    If the operator forcibly sets a longer cache time for domain name resolution records, it will cause a delay in modifying or deleting the resolution records to take effect, which is expected to be up to 48 hours. During the modification period, it is necessary to ensure that the IP addresses before and after the modification can provide normal services.

 

 

How to check whether domain name resolution is effective?


Use the query command to check whether it takes effect:

  • ping domain name
  • nslookup -qt=type domain name

 

 

Use the Ping command to check whether domain name resolution is effective (applicable to Windows and Linux operating system hosts)


  1. Click "Search" on the local host, enter cmd, and open the command window.
  2. Then enter the following command to check whether the parsing takes effect.

    ping domain name

    Example: To check whether the resolution of the domain name example.com is effective, execute the command ping example.com

    The echo information is shown in Figure 1. If the displayed IP address is consistent with the IP address set for domain name resolution, it means that the resolution has taken effect.

    Figure 1  Use ping to check whether the parsing is effective

Note: When using the Ping command, whether the resolution is effective is not directly related to whether the domain name can be pinged. After executing the "ping domain name" command, if the IP address displayed is consistent with the IP address set for domain name resolution, it means that the resolution has taken effect.

 

 

 

Use the nslookup command to check whether domain name resolution is effective (applicable to Windows and Linux operating system hosts)


  • Verify type A resolution: used for IP address resolution of the specified domain name.
    1. Click "Search" on the local host, enter cmd, and open the command window.
    2. Then enter the following command to check whether the parsing takes effect.

      nslookup -qt=a domain name     or   nslookup domain name

      Example: nslookup example.com

      The echo information is shown in Figure 2. If the displayed IP address is consistent with the IP address set for domain name resolution, it means that the resolution has taken effect.

      Figure 2  Use nslookup to check whether type A parsing is effective

  • Verify CNAME type resolution: used to specify the CNAME value of the domain name, suitable for CDN, WAF, cloud speed website building scenarios and other scenarios.
  1. Click "Search" on the local host, enter cmd , and open the command window.
  2. Then enter the following command to check whether the parsing takes effect.

    nslookup -qt=cname domain name

    Example: nslookup -qt=cname examplesite.com

    The echo information is shown in Figure 3. The displayed CNAME value is consistent with the CNAME value set for domain name resolution, which means that the resolution has taken effect.

    Figure 3  Use nslookup to check whether CNAME type resolution is effective

 common problem

  • If the correct domain name resolution IP address cannot be obtained during the verification and resolution process, it means that the resolution has not taken effect or the resolution has been modified. It is recommended to refer to what to do if the parsing does not take effect to troubleshoot.
  • After the domain name expires and the renewal fee is paid, the website still cannot be opened.

    It may be that the DNS resolution cache is not refreshed. You can execute ipconfig /flushdns to refresh the cache. Or wait for DNS to refresh and try again.

  • Use ping to check that the domain name resolution is normal, but the website cannot be opened.

    If the domain name resolution is normal but the website cannot be accessed, you need to check whether the cloud server that builds the website is correctly bound to the domain name, or whether the website has been registered. You can refer to

Guess you like

Origin blog.csdn.net/qq_34556414/article/details/133070952