emmmmm As we all know, due to the special situation in China, the network supervision mechanism in China is different from that in foreign countries. It is necessary to file for various network services in China, and the filing process is cumbersome and requires uploading certified licenses. I don't really like this thing, so my blog is not filed either.
Use CDN#
Filing has both advantages and disadvantages. After filing, various cloud services in China are unrestricted. Servers in Alibaba Cloud and Tencent Cloud located in China can be used to build websites, and domestic CDN services can also be used. But my blog is not filed, so I have been using a DigitalOcean server before, which doesn't require filing, but the network world will not ignore the speed limit of light in physics, the delay is bad very bad, so I thought about using CDN ( Content Delivery Network) as a poor person, of course, I chose to freeload use a free CDN. I use CloudFlare, this service provider is really hard to describe, indeed its data centers are distributed all over the world, except China, so it makes CloudFlare's service not so powerful in China. Later, I gave up using CloudFlare as a CDN solution not because CloudFlare requires money to use its own certificate Anyway, I stopped using CDN later.
I have also thought about using other CDNs. Either they are expensive or they are not as effective as CloudFlare.
Change DNS#
Then, these days I have some free time not because I'm slacking off before the exam and I want to change the DNS resolver provider. I used CloudFlare's DNS before, even if I didn't use the CDN function, I still used it. But it seems that CloudFlare's DNS is not well maintained in some nodes in China (dog head to save life), so the user experience is not good, so I moved the DNS to NS1.
About NS1#
NS1.com is a foreign professional DNS domain name resolution service provider. In addition to paid DNS domain name resolution, it also provides free DNS domain name resolution packages, with a free quota of 500k Queries, 50 Records, 1 Built-in Monitor, 1 Filter Chain, and NS1 API, which can basically meet the needs of daily website construction.
Excerpt from NS1 DNS Domain Name Resolution Usage - Master/Slave Master/Slave DNS and Global Partition Resolution
That's it. It looks professional and it is indeed professional.
But there is one more troublesome thing, which is that you need to use a credit card for verification during registration (it seems that UnionPay is not supported?). Anyway, I registered.
The functionality is very rich and the statistics function is also very powerful. The best tool I use now is its regional partition resolution. Although CloudXNS is more powerful, it also requires certified licenses #mumbling
Regional Partition Resolution#
emmmmm, it's very simple. Set the DNS to return the Hong Kong server for requests from Asia, the European server for requests from Europe, and throw all other requests to the US server.
Website Synchronization#
Actually, a better choice is to use nginx reverse proxy + cache, but I'm a bit lazy so I use git to synchronize my various website content. It's great to have a cron job for scheduled tasks. If I go into details, it will be a big pit, so I'll talk about it later~~(the sound of a pigeon flying away~~
Related Links#
NS1 DNS Domain Name Resolution Usage - Master/Slave Master/Slave DNS and Global Partition Resolution
NS1.com
Dual Opening of the Blog, Avoiding offline™