johnpoint

johnpoint

(。・∀・)ノ゙嗨
github

True - Multi-point Deployment Blog

emmmmm As we all know, due to the special situation in China, the network regulation 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.

Photo by rawpixel on Unsplash

Using CDN#

Filing has both advantages and disadvantages. After filing, various cloud services in China are unrestricted. Servers located in national data centers of cloud providers like Alibaba Cloud and Tencent Cloud 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 (DO) server, which does not require filing. However, the network world does not ignore the speed limit of light in physics, and the delay is very bad very large. So I thought about using a 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 around 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 payment to use its own certificate Anyway, I stopped using CDN later.

I have also considered using other CDNs. Either they are expensive or they have worse effects than CloudFlare.

Changing DNS#

Then, these days I have some free time not because I'm slacking off before exams 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 continued to use it. But it seems that CloudFlare's DNS is not well maintained in some nodes in China (dog head to save face), so the user experience is not good. Therefore, I migrated the DNS to NS1.

Let's talk about NS1#

NS1.com is a foreign professional DNS domain resolution service provider. In addition to paid DNS domain resolution, it also provides free DNS domain 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 building.
Excerpt from NS1 DNS Domain Resolution Usage - Master/Slave Master/Slave DNS and Global Partition Resolution

That's it. It looks professional and it is indeed professional.

image

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 resolution Although CloudXNS is more powerful, it also requires certified licenses #mumbling

Regional 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 lazy so I use git to synchronize my various website content. It's great to have a cron job, but if I go into details, it will be a big pit. I'll talk about it later~~(Sounds of pigeons being released~~

NS1 DNS Domain Resolution Usage - Master/Slave Master/Slave DNS and Global Partition Resolution
NS1.com
Dual Opening of Blogs, Avoiding offline™

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.