two method to specify the sender:
-
echo "This is the main body of the mail" | mail -s "Subject of the Email" [email protected] -- -f [email protected] -
mail -s "Some random subject" -a "From: [email protected]" [email protected]
| # | |
| # Zabbix monitoring system php web frontend | |
| # | |
| Alias /zabbix /usr/local/zabbix-web | |
| <Directory "/usr/local/zabbix-web"> | |
| Options FollowSymLinks | |
| AllowOverride None | |
| Order allow,deny |
two method to specify the sender:
echo "This is the main body of the mail" | mail -s "Subject of the Email" [email protected] -- -f [email protected]
mail -s "Some random subject" -a "From: [email protected]" [email protected]
替换上你的Email,密码,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得domain_id可以用curl curl -k https://dnsapi.cn/Domain.List -d "login_email=xxx&login_password=xxx"
获得record_id类似 curl -k https://dnsapi.cn/Record.List -d "login_email=xxx&login_password=xxx&domain_id=xxx"
20130626
| <div class="github-card" data-user="xdays" data-width="300" data-height="150"></div> | |
| <script src="http://lab.lepture.com/github-cards/widget.js"></script> |