长篇爱情故事24、ROSDDNS简单脚本(changeip)
⼀、基本做法
  1、申请DDNS账号
    www.changeip
  2、激活:到邮箱中激活
  3、ROS⽤脚本更新:
    :global ddnsuser "123456789@qq"
    :global ddnspass "www.123"
    :global ddnshost "ddns"
    :global ddnsinterface "ether2"
    :global ddnslastip
沙门氏菌病
    :global ddnsip [ /ip address get [/ip address find dynamic=yes interface=$ddnsinterface ] address ]
    :if ( [:typeof $ddnslastip]="nothing" ) do={ :global ddnslastip 0.0.0.0/0 }热依扎承认新恋情
    :if ( [:typeof $ddnsip]="nothing" ) do={
    :log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.")侵略的拼音
    } else={
    :if ($ddnsip != $ddnslastip) do={
    :log info "DDNS: Sending UPDATE!"
    :log info [ /tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ]    :global ddnslastip $ddnsip
    } else={
    :log info "DDNS: No change"
    }
    }
聚集的反义词
⼆、另类做法:
  1、⼀条语句就搞定:
  /tool dns-update name=wpjwyj.changeip address=127.0.0.255 key-name=wpjwyj key=123456
  2、127.0.0.255(只要是⼴播地址就可以)的作⽤:发送⼴播,获取当前WAN⽹⼝的IP。
qq说说