Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Dynamic IP Updater, please help decipher mistake on web page instructions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2006, 09:25 AM
Default Dynamic IP Updater, please help decipher mistake on web page instructions



I have 3 FQDNs and want to use them on my fedora box and have in the past
with great success. That was with a DSL account and a static IP address.
Now I have a cable modem (way much faster) with a dynamic IP address and
need an IP updater to keep the DSN provided by zoneedit.com accurate.
zoneedit has a page of instructions about this and even mention two Linux
commands that can be used instead of installing any software, wget and
lynx. I tried the wget one on the CLI and it seemed to work. The trick is
to automate this process to occur when needed. Since I use dchp to
connect, they mention this at zoneedit but the instructions are not clear
as they refer to some sort of an executable file called
/etc/dhcpc/dhcpcd-eth0.exe, which cannot be true because Linux does not
use exe files.

The page of instructions for UNIX clients can be found here:
http://www.zoneedit.com/doc/dynamic.html#faq3

See where they talk about this...
---------------------------------------------------------------------
Users of dhcpcd may place these commands in the file /etc/dhcpc/dhcpcd-
eth0.exe or /etc/dhcpc/dhcpcd-eth1.exe which are executed whenever a new
dynamic IP address is acquired.
---------------------------------------------------------------------

I do use dchp to connect and by putting the wget command in the right
place would be great for me, I use three of them for the three domains
but where does one place these three wget commands so that they will
execute when they are needed, like when the IP address changes? I do not
have a /etc/dhcpc directory, or any kind of dhcp directory in /etc/ for
that matter in Fedora 3. I do use dchp to connect as per my
/etc/sysconfig/network-scripts/ifcfg-eth0 file:

[ohmster@ohmster network-scripts]$ cat ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
USERCTL=no
PEERDNS=yes
PEERYP=no
PEERNTPD=no
TYPE=Ethernet
IPV6INIT=no
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
NETMASK=255.255.248.0
[ohmster@ohmster network-scripts]$

So I want to use these three commands (They are one-liners.):
---------------------------------------------------------------------
wget -O - --http-user=username --http-passwd=password
'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain1.com'

wget -O - --http-user=username --http-passwd=password
'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain2.com'

wget -O - --http-user=username --http-passwd=password
'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain3.com'
---------------------------------------------------------------------

And I want for them to run every time I get a new IP address from dhcp.
How and where can I put them to do this? Can I put all three of them in a
shell script or executale text file and then call it from some sort of
dhcp action? The instructions at zoneedit.com are really not clear with
directories that do not exist or exe files that Linux does not use.
Please help. Thanks.
--
~Ohmster


Ohmster
Reply With Quote
Reply

Tags
decipher, dynamic, instructions, mistake, page, updater, web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.