-   Linux - Networking (
-   -   ddclient setting problem (

yat 03-05-2004 09:38 AM

ddclient setting problem
Hello !
Is there any experience user of this ddclient. I had been set the daemon many time but fail. Is it necessary to set the router of the LAN and the band of the router ?:scratch:

/bin/bash 03-05-2004 08:22 PM

If you unpack the ddclient tarball and change to that directory you'll have these files:

$ ls
COPYING                    sample-etc_ddclient.conf
COPYRIGHT                  sample-etc_dhclient-exit-hooks
ddclient*                  sample-etc_dhcpc_dhcpcd-eth0.exe
README                      sample-etc_ppp_ip-up.local                sample-etc_rc.d_init.d_ddclient*
sample-etc_cron.d_ddclient  sample-etc_rc.d_init.d_ddclient.redhat*

What you do is to take these sample files and put them in the right places. For example if you are using Mandrake you will to this:
cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
cp sample-etc_ddclient.conf /etc/ddclient.conf
cp ddclient /usr/sbin/ddclient
Then you would edit /etc/ddclient.conf and if you have a router you need to uncomment the line that has your router on it. Also uncomment the dynamic dns service e.g Add your login and password.
Now you can setup ddclient to start automatically this way.
chkconfig --add ddclient
chkconfig --level 35 ddclient on
service ddclient start

yat 03-05-2004 09:42 PM

more about setting ddclient problem
Thank you for your replied.
But I think I should revealed more on my situation: I have an router band name called "SERCOM". I don't know I should select which router inside the ddclient.conf to support my router. Can I just set the right gateway "" for the router and set the "fw=" to the same gateway. Moreover my router can set a database for the router-bilt-in firewall for example "" is a ftp machine. Is it means, I should set the machine for the correct services. for example: is a web server otherwise I can not sent out my update-ip-request from that or to And I should tell the ddclient that it is a web base server where I installed the ddclient. And I should put in consideration that I should select the "web page support" options
and I already installed the ddclient by rpm packet. Is it means that I should uninstalled it and put the untared file in the destinated place instead:confused:

/bin/bash 03-06-2004 04:11 AM

I suppose the rpm installed everything you need. What version was the rpm? Ddclient is currently at 3.6.3, so if you are close to that I wouldn't worry about upgrading. To check your version.
rpm -q ddclient
Also look to see if any documentation came with the rpm.
rpm -ql ddclient
The readme file that comes with the tarball has some troubleshooting tips you should probably try.



  1. enable debugging and verbose messages.
        $ ddclient -daemon=0 -debug -verbose -noquiet

  2. Do you need to specify a proxy?
    If so, just add a
    to the ddclient.conf file.

  3. Define the IP address of your router with in
    /etc/ddclient.conf and then try
            $ ddclient -daemon=0 -query
    to see if the router status web page can be understood.

  4. Need support for another router/firewall?
    Define the router status page yourself with:
    ddclient does something like this to provide builtin support for
    common routers.
    For example, the Linksys routers could have been added with:
        fw-skip=WAN.*?IP Address

    Send me the output from:
      $ ddclient -geturl {fw-ip-status-url} [-login login [-password password]]
    and I'll add it to the next release!

    ie. for my fw/router I used:
        $ ddclient -geturl

  5. Some broadband routers require the use of a password when ddclient
    accesses it's status page to determine the router's WAN IP address.
    If this is the case for your router, add
    to the beginning of your ddclient.conf file.
    Note that some routers use either 'root' or 'admin' as their login
    while some others accept anything.

The reason ddclient needs to know the type of router is so that it knows how to get the IP from it. Looking at the above troubleshooting steps you should be able to use any router if you know the location/url of the routers status page.

For example my D-Link 704p status page is at:
So if ddclient did not support my router what I would put in /etc/ddclient.conf is this:
fw-text="some text string"

The way I would find the text string is like this:
lynx --dump
And I look for some text that comes before the WAN IP address.

yat 03-06-2004 09:18 AM

more details
Thank you for your kindness.
But I did not install lynx in my Ferdora core 1. May I have another command to instead The command :lynx --dump

/bin/bash 03-06-2004 01:51 PM

You could just type the url into the address bar of any browser. I just used lynx as an example, but links would work or mozilla...

yat 03-08-2004 11:50 AM

more details
Thank you for your kindness.

After I installed the lynx and type the command: #lynx --dump
There is a page of data popup just like that:
Connectin Method: Direct
Broadband Modem: Connection OK
Ineternet Connection:Active
Inernet IP Address: 218.x.x.x
IP Address:
Network Mark:
DHCP Server: ON
Device Name: SCDBXX.XX
Firmware Version: Version xx Release 0x
Printer Status:Off Line
Abort Current Print Job

Is the above data tell me two things:
1./ I should set the line of ddclient.conf to :
use=fw, fw=
Is it good to me ?
2./ I don't know how to setting :

Please tell me !!!

/bin/bash 03-08-2004 04:42 PM

Try this:
fw-skip="Inernet IP"
fw-skip="Inernet IP Address:"

You can play around with it till you get it to work. It just needs some text to look for that is right before the Internet IP address, which looks like it is going to be that 218.x.x.x IP. This is the IP address which will assign to your machine's DNS lookup.

yat 03-14-2004 08:47 AM

more details
Thank you for your kindness

May I ask you a foolish question :
you say just type fw-skip="Internet IP Address"
Is it means that I just type the exactly the string "Internet IP Address" and starting and ending with the sign "
It is no need to chage the string "Internet IP Address" into an IP address

After I tried using fw-skip=`Internet IP Address`
I received one e-mail :
From: root <>
MessageID <jsiowodjsjj>
Subject: status report form
WARNING: caught SIGTERM: exiting
and my IP address is still can't get update automatically
after I type "/etc/rc.d/init.d/ddclient restart"

/bin/bash 03-14-2004 07:06 PM


Is it means that I just type the exactly the string "Internet IP Address" and starting and ending with the sign "
It is no need to chage the string "Internet IP Address" into an IP address
Yes that is correct, however when I look at my ddclient.conf file I see I'm using single quotes, so you could try it that way.

This is how mine looks:
use=fw, fw=, fw-skip='WAN'
You would just change the WAN to Internet IP Address.

You should also give up to 15-30min for your new IP address to spread its way throughout the internet.

yat 03-15-2004 09:21 AM

Hi !

Thank you for your teaching.
And I will start the service and waiting as soon as possible !

But how about the e-mail I received. Does it implied that my service will filed.

Or bear the other meaning !

/bin/bash 03-15-2004 12:47 PM


But how about the e-mail I received. Does it implied that my service will filed.
Yes that would seem to indicate your ddclient stopped for some reason. You can look through /var/log/messages to see if there are any indications why? From your previous post you had backtic marks instead of quote marks, and that may have caused problems. This is what I'm referring to:

After I tried using fw-skip=`Internet IP Address`
The backtic marks will probably cause problems.

Remember once you start ddclient you can go to and login and check your account to see if it was updated. Also you should get a new cache file /etc/ddclient.cache when ddclient updates

Make sure you have your personal settings and account information entered into /etc/ddclient.conf
login=mylogin # default login
password=mypassword # default password
## dynamic addresses
## (supports variables: wildcard,mx,backupmx)
##, \
protocol=dyndns2 \

In your second post you asked about running some servers behind the router. You can read this document for more information. Here are the important points.

With NAT, you have a public IP that you obtain from your ISP which is assigned to the computer/device performing the NAT, and some private IPs that are used for the machines behind the NAT (all IPs beginning in 192.168 or 10 are private; there are other private IP ranges, but those are the most common). When you run a server on one of the machines behind the NAT, then it will be reachable using that machine's private IP, which is fairly useless.

This would lead you to conclude that there's no way to run a server behind NAT. Fortunately, that is not correct. Most NAT implementations have a feature called port forwarding: what that means is that the NAT implementation will take requests to its public IP on a given port and transparently forward these requests to a specific machine/port in the private network. Port forwarding lets you run servers behind NAT, but it does have a few limitations: it must be supported by your NAT implementation (Windows 98SE/Me's ICS requires a third-party freeware tool to configure port forwarding), it requires you to be able to administer the NAT device (if your roommate or parents have the NAT device's administrative password, then you're stuck), and it only lets you have one machine in the private network handle each port (so, for example, if you want to run a mail server and a FTP server, these can be run on two separate machines in the private network if you want. However, it's not possible to have two FTP servers simultaneously on different machines). However, port forwarding is the best thing available, and it generally works well enough. Note that nothing, and particularly not DNS, will be able to change these limitations: for example, you can't have and referring to different machines behind the NAT: you can have referring to the NAT device's public IP, and then have that machine forward whatever ports you want to your in external machines, though.
So basically if your router supports nat or port forwarding then you are OK. Just tell your router to forward all ftp traffic to and all web traffic to

yat 06-13-2004 07:16 AM

Hi long time no see !

I am sorry to tell you that I still cann't fix my problem
But I have some question to consault you. And hope you are so kind to tell me.
I wanted to know the line "," in the ddclient.conf. Is it fit for me ?
The words "fit for me" means that I am not have to change any charater in that line ?
or I should change to ... eg. ""
If it is trure what is the "xxxx" for me ? How can I know that "xxxx"

All times are GMT -5. The time now is 09:28 PM.