On my debian box I have linksysmon and ez-ipupdate installed through a
DHCP connection, everytime my Linksys Router resets I get a new IP address.
My provider has it so I can setup dynamic dns from them and if I run:
../ez-ipupdate --address 1.1.1.1 --service-type easydns --user
Mysername:SomePassword --host openworld.ca
((1.1.1.1) is not some arbitrary number.)
Within a short time my IP resolves to my domain name.
I'm wondering if Linksysmon is the actual tool/script that can query to
see what my new IP address is; if it has change every 10 minutes as an
example, or if I have to write my own script to get the new ip address
from my provider.
If Linksysmon does replace me having to write a script, has anyone
configured it. The perl script executable shows <hostname> <ip-address>
<date> <time>
The hostname I can see being only what easydns.com (somedomain.ca) has
given me, but would the IP address be my router IP, since Linksysmon is
listening for snmp from the router, or my WAN IP from my providers DHCP
address at the time. What would the correct format be for <date> <time>
MMDDYYMMSS?
One last thing sorry........
It states Edit /etc/linksysmon.conf to your liking.
If linksysmon is the tool that replaces writing a script what changes
would I make in the .conf and would I still have to add something into a
cron job.
# for each linksys firewall for which you want to update dynamic DNS,
# you need one of these blocks. EZhost is the hostname from
# /var/log/linksys.log. DNSName is the dynamic domain name
# corresponding to EZHost. DNSService is the dynamic DNS service you
# use with ez-ipupdate. Username & Password are the username and
# password for the dynamic DNS service.
<EZHost linksys.mydomain.com>
DNSName mydomain.dyndns.org
DNSService dyndns
UserName test
Password test
</EZHost>
Would EZHost be somedomain.ca because var/log/linksys.log only shows my
local router IP Address 192.168X.x?
Also easydns.com allows me not to add them to the URL so
somedomain.easydns.com so what would I add to
DNSName mydomain.dyndns.org
Sorry for such a lengthy question but I really don't want to pay extra
for a static ip and this involves me learning how networking works.
|