26/04/2015
Free Dynamic DNS Service from NameCheap
The title is a bit misleading and I don’t think it’s a complete free service from NameCheap as you might need an active domain name, such as .com, .org, or .info etc.
Background: I am seeking for a stable DDNS service for my home ISP in China. I was using free 3322.org DDNS years ago but they stopped working all of sudden and I changed to DyNS for a while. Unfortunately, it’s very unstable so I need to find alternatives.
I was trying to get a paid DynDNS service which is a popular option for end users. However, given the fact that it’s quite expensive – about $30 USD a year, I have to find a cheaper solution.
Finally, I found NameCheap. It is said that they provides free DDNS services if you are using their name server so I used one of my domain name to conduct the experiment.
I will be a good idea to have a transferred / registered domain name from NameCheap and they provide great service. I am trying to transfer all of my domain away from Godaddy to NameCheap (However, I have no affiliation with NameCheap at the time I am writing this blog).
1. Go and find drop down menu –> Manage Domains, then choose your domain name you wish to have DDNS service enabled.
2. Click All Host Records, create an A Record under SUB-DOMAIN SETTINGS for your DDNS service. For example, if you wish to create dynamic.YOURDOMAIN.COM, you can just type dynamic in the first text box under SUB-DOMAIN SETTINGS. You can then type some random IP address in the IP ADDRESS/ URL area and it will be replaced by real IP address for your DDNS host.
3. Click Dynamic DNS link and enable DDNS Service. Grab that password system has generated.
4. We can use wget or any browser to update our DDNS address. It will be very useful for some open source router and possibly Cisco ISR DDNS.
The wget format will be provide as follows:
http://dynamicdns.park-your-domain.com/update?domain=bjdch.org&password=PASSWORD&host=dynamic
where bjdch.org will be your domain name, PASSWORD is your DDNS password you have just grabbed, and dynamic would be your A record you wish to update.
As a successful request, the server will return some information:
SETDNSHOSTengYOURIP00true
YOURIP is your real local IP address and you can double check that IP address in NameCheap control panel.
There you have it! You saved nearly $20 to use elsewhere and you own a very special domain yourself. It is definitely a better deal!
03/05/2015
搭建NGINX简易纯HTML临时环境
By dch1 in Life No Comments Tags: Nginx
最近开了一台美国VPS专门用于文件转储下载,主机空间是VULTR的存储套餐,一个月只要$5 USD。但问题来了,在下载了近百G之后,用SFTP下载速度太慢,所以寻求简单暴力的方式挂到本地。
HTTP协议是比较好的解决方案,而且施加IP限制也很方便。
nginx安装方法很简单,在此不再赘述。就是 apt-get install nginx。
由于该主机只有一个网站,所以直接修改默认文件实现 /etc/nginx/sites-available/default
注意:
1. 别忘了使用ln -s命令创建Symbolic的副本到 /etc/nginx/sites-enabled ,不过貌似default文件已经生效了。
2. 记得修改文件权限,也就是把root文件夹下的所有权改为www-root,命令是: