“This article has participated in the call for good writing activities, click to view: the back end, the big front end double track submission, 20,000 yuan prize pool waiting for you to challenge!”
preface
Yesterday sent a lot harder to deploy | CDN to accelerate web pages, loos fast! “And thought it was time to end the series. However, someone in the comments said that my page was not accessible:
When I opened it, it was cold.
I thought I was in arrears at the beginning, after all, I didn’t look carefully at the email received by Tencent Cloud every day. Later board the console to see, did not owe fees ah, and refresh and good.
On second thought, only one outcome is that the DNS server of foreign NameSilo is blocked.
I also used DNS Pod of Tencent Cloud as DNS server before, but I changed it to NameSilo when I wrote an article yesterday. I thought there would be no problem, but there was a big problem as a result.
The problem
The current guess is that NameSilo’s DNS server is blocked. That is, when you visit yanhaixiang.com, DNS will look for which IP address, or CNAME, to match the domain name.
However, the step from the browser to the DNS server is blocked for some reason, so the domain name cannot be resolved and the HTML cannot be returned.
To solve this problem, you can use the DNS Pod service provided by Tencent Cloud.
Add DNS Pod records
Go to the management page and add a resolution.
Record the resolution of the previously configured NameSilo:
Copy all to DNS Pod:
After the transfer, we have another SET of DNS resolution on the DNS Pod.
The configuration Name Server
Now we have NameSilo and Tencent cloud DNS Pod two sets of resolution rules, that how to bind domain name and DNS Pod? The answer is Name Server.
Re-open NameSilo, click on your domain name, and you’ll see that NameServers has three default DNS server addresses.
These three addresses are the default DNS servers provided by NameSilo, which are generally provided by domain name service providers. When a domain name is accessed, the IP address is looked up and resolved through these servers, and the HTML is returned.
Now, just change the address of NameServers to the DNS server address provided by Tencent Cloud.
The DNS server address provided by Tencent Cloud is in the header of the console:
Put them in NameServers in NameSilo:
After Submit, wait a while to configure DNS resolution.
Matters needing attention
When a DNS Pod is used to resolve a domain Name, a red warning will appear on NameSilo when you update the DNS resolution configuration. This is normal because you have already used another Name Server to resolve the domain Name.
If you go back to the Github Pages configuration, you will get the following error:
This is because when the CDN is cached, the direct access domain no longer calls Github, but directly returns the CDN and Github says “hey, you can’t call me”. In fact, user access is not affected.
conclusion
To summarize what we did:
- Copy DNS records of NameSilo to DNS Pod of Tencent Cloud
- Change NameSilo’s NameServers to the NameServer address provided by Tencent Cloud DNS Pod