Hi I'm hosting a webserver at home and using the dyndns free service for a domain name. As I have a dynamic IP, I'm using DDclient to update the IP on the dyndns server when it changes. However, there seems to be a problem with this. DDclient detects the local address of eth0 (the interface that I specified in the /etc/ddclient.conf file). So now I have to update the IP manually on the dyndns site every time my IP changes. If anyone has used this program, please help . Agrajag
Is your system (the one where ddclient is installed) acting as your router (i.e., is it connected directly to the internet)? What's the output of Code: ifconfig ?
No, the server is connected to a router which is connected to an adsl modem. ifconfig returns the following: Code: eth0 Link encap:Ethernet HWaddr 00:09:5B:67:8E:D3 inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::209:5bff:fe67:8ed3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:122265 errors:0 dropped:0 overruns:0 frame:0 TX packets:15435 errors:2 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25614627 (24.4 MiB) TX bytes:5386844 (5.1 MiB) Interrupt:185 Memory:cc102000-cc102fff lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:30 errors:0 dropped:0 overruns:0 frame:0 TX packets:30 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2332 (2.2 KiB) TX bytes:2332 (2.2 KiB) thanks for your help Agrajag
Ok here's the ddclient.conf: Code: pid=/var/run/ddclient.pid protocol=dyndns2 use=if, if=eth0 server=members.dyndns.org login=agrajagzz9 password='secret' zz9.homelinux.net and crontab: Code: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cr$ 47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report /etc/cr$ 52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report /etc/cr$ #
If you don't post the complete ddclient.conf file (minus password and hostname), it's useless. What distro are youu using? Code: ## For those using Redhat style rc files and using daemon-mode: cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient ## enable automatic startup when booting /sbin/chkconfig --add ddclient ## start the first time by hand /etc/rc.d/init.d/ddclient start Code: If you have not configured ddclient to use daemon-mode, you'll need to configure cron to force an update once a month so that the dns entry will not become stale. ## configure cron to force an update twice a month cp sample-etc_cron.d_ddclient /etc/cron.d/ddclient vi /etc/cron.d/ddclient
That is the complete ddclient.conf file (without the comments at the start). I'm using Kubuntu 6.06. I was under the impression that ddclient comes automatically in daemon mode. (Which I think it is anyway.) But the problem is that it updates with the local ip of the computer instead of the external ip. However, it obviously doesn't update unless I reboot the server because it has a static ip.
Download the latest verion ddclient-3.7.0. the original .conf has 160 lines and the file should include the following if running in deamon mode: Code: daemon=300 # check every 300 seconds and you should include one of the following to get your external IP address if you are connected to a router. Code: #use=watchguard-soho, fw=192.168.111.1:80 # via Watchguard's SOHO FW #use=netopia-r910, fw=192.168.111.1:80 # via Netopia R910 FW #use=smc-barricade, fw=192.168.123.254:80 # via SMC's Barricade FW clip... My router wasn't listed and I got it through a little trial and error. Followed that with your dyndns member information. now run test: Code: ddclient -daemon=0 -debug -verbose -noquiet
I don't see any interface that's connected to the internet, like ppp0 or something like this. If your system was connected directly to the internet, you'd have something like ppp0 on your system with a public IP address, and you'd have to use this interface for ddclient. Now you're behind a router, which means your router must update the dyndns record, so ddclient is useless for you. Most routers support updating dyndns records nowadays.
I recall being able to run ddclient on a linux box behind a network router/switch and that router behind a DSL router without problems. i eventually found out that my DSL router had it's own IP address update util. that connects to dyndns. so I stopped running ddclient.
hello i use ddclient with same way behind router with lan ip sometimes ddclient register in dns record my lan ip and other times my outside ip i use sme server 7 i have speedtouch 530 router how i can configure ddclient take ip ? thanks in advance..