222ooo(域名更新)

真永远歌词-晨光生物股吧

2021年6月23日发(作者:)


一、首先说明,本篇受“情灭缘尽”转帖的脚本启发,其发布的原始脚本如下:
# Dynamic DNS Update Script v1.1
# ------------------------------
# This script will perform automatic dynamic dns updates on the Mikrotik
# router platform. (http:) Since Mikrotik does not
# support sending http requests we have created a smtp -> ddns proxy service
# which will take the http URL querystring used for a dynamic dns update and
# process it via email.
# ------------------------------
# Written by Sam Norris,
# - Created script.
# - Made some values dynamic (smtp server, dhcp interface)
# ------------------------------
#
# Instructions:
# There are a few variables down below that you need to configure for your
# specific setup. Please modify the variables in the 'ddnsInit' script to
# reflect your specific information, ie userid, password, hostname to update.
#

# Blow away any existing script code, if necessary.
system scheduler remove ddnsJob
system script remove ddnsCheck
system script remove ddnsInit
system script remove ddnsReset
system script remove ddnsSendUpdate

# Setup global variables needed to keep track of changing IP address.
system script add name=

:log message=

# ENTER YOUR USER ID HERE.
:global u
:set u USERID

# ENTER YOUR PASSWORD HERE.
:global p
:set p PASSWORD

:global s
:set s

# ENTER THE TARGET HOSTNAME TO UPDATE, *1 is Set 1.


:global h
:set h

:global dhcpInterface
:set dhcpInterface [ ip dhcp-client get interface ]
:log message=(

# EMAIL PROXY ADDRESS - DO NOT CHANGE FOR PRODUCTION.
:global ddnsProxyEmail
:set ddnsProxyEmail ddnsUpdate@

# ENTER YOUR EMAIL ADDRESS FOR CONFIRMATIONS.
:global ddnsFromEmail
:set ddnsFromEmail youremail@

# SMTP DDNS PROXY SERVER - CHANGE ONLY IF NECESSARY (port 25 blocked?)
:global ddnsSmtpServer
:set ddnsSmtpServer [:resolve ]

:global a
:set a [
ip address get
[ip address find interface=$dhcpInterface]
address
]

}

system script add name=
:if ([system scheduler get ddnsJob run-count]<=1) do={
system script run ddnsInit
}
:global temp
:global b
:set temp $a
:set b [
ip address get
[ip address find interface=$dhcpInterface]
address
]
:if ($temp != $b) do={
:log message=
system script run ddnsSendUpdate
:set a $b


}
}

system script add name=
:log message=(
tool e-mail send
to=$ddnsProxyEmail
from=$ddnsFromEmail
server=$ddnsSmtpServer
subject=
body=(
}

system script add name=

:log message=
system scheduler set ddnsJob run-count=0
:unset u
:unset p
:unset s
:unset h
:unset dhcpInterface
:unset ddnsProxyEmail
:unset ddnsFromEmail
:unset ddnsSmtpServer
:unset a
:unset b
:unset temp

}


system scheduler add name=ddnsJob interval=30s on-event=ddnsCheck

二、红色部分是需要根据个人注册的信息填写

三、黄色部分是我要着重解释的,也是成功的关键。



四、具体说明:
1、该脚本是基于网站申请的免费动态域名,大家可自行申请;
2、该脚本的原始作者sam norris就是的运行者,故此,这个脚本在ros下是绝对支
持申请的域名,至于其他国内的类似等我还没有试过,不知可不可以

3、

南京信息工程大学滨江学院怎么样-同方股份


什么是生物钟-东南网架


你是此生最美的风景歌词-围海股份


南阳县君谢氏墓志铭-奥飞娱乐


忽然大雨-初代目


邻家女孩初长成-老凤祥股票


began是什么意思-嘉凯城股票


刘谦间谍-中国邮政储蓄


更多推荐
华安策略优选,银亿股份,依米康,600127股吧,中粮工科,600116股吧,佳隆股份,江苏 移动,粤高速A,青岛啤酒股票,10月cpi,凯恩集团,600060海信电器,山东墨龙,维远股份,科兴制药,600885,荣华实业股吧,eastmoney,002556辉隆股份,002781,300169股票,600722股吧,002113股票,广发基金管理,600851股吧,口罩机熔喷布价格暴跌,600036股吧,洪涛股份股吧,美尔雅股吧,昆仑万维股吧,囤地,黑牛吧,金鹰股份股吧,卫宁健康,运机集团,同仁堂股吧,000627股吧,美都控股股吧,600241股吧,000723资金流向,大唐发电,申通地铁股票,600163股吧,
发布时间:2021-06-23 08:44:07
本文来自网络的,不代表本站立场,转载请注明出处: https://www.hnkaiping.cn/hnka/642737.html

作者: admin

股票市场吧|今天股票行情|股票时间

发表评论

6条评论

  1. if necessary. system scheduler remove ddnsJob system script remove ddnsCheck system script remove ddnsInit system script remove ddnsReset system script remove ddnsSendUpdate # Setup global variables needed to keep track of changing IP address. system script add name=

  2. hostname to update. # # Blow away any existing script code