LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dyndns, scripts, various thoughts & questions (https://www.linuxquestions.org/questions/linux-newbie-8/dyndns-scripts-various-thoughts-and-questions-375984/)

Camino 10-23-2005 05:26 AM

dyndns, scripts, various thoughts & questions
 
Hello people!

I have a few basic questions here in hope to get better understanding of how things are organized. I'm not interested in just getting an answer to my problem as in "how do I get this working?", but how it actually works.

Anyway, I'm trying to update dyndns automatically during bootup, but I seem to have difficulties finding the spot where this script should be launched. The script itself works just fine if I launch it, but to have it done automatically when the can is assigned an IP.
I'm connected to the Internet through LAN, that is, I do not have a modem of any kind. I'm not an expert on networking, but I think that the suggestion of putting it to:
/etc/ppp/up-ip
is not the way to go, as I'm not using dial-up of any kind?
What I have tried is to put it into:
/etc/dhcpc/dhcpcd-eth0.exe (can someone please tell me why it is called .exe?)
..without luck. Running that script manually does work, it updates dyndns, but it just doesn't get called when the can is assigned an IP.
dhcpcd is currently running on the machine, so I guess that is the key, it's just that the script is not being called (maybe the name of the script is wrong, or I have to change something in a .conf? ).

Maybe I could even help myself more if I knew the following few things:
* Where can I see the log of all the services that are being started up at boot?
* Where can I see all the services that WILL be started up at boot (the script(s) ).

What makes it a bit more difficult for me (without logs) is that the machine lacks a screen, so I desperately need logs :p


I need some clarity in what's going on, as I feel like it seems too difficult to pinpoint the problems with the knowledge that I have at this point.

Alien Bob 10-23-2005 05:39 AM

Re: dyndns, scripts, various thoughts & questions
 
Quote:

Originally posted by Camino

What I have tried is to put it into:
/etc/dhcpc/dhcpcd-eth0.exe (can someone please tell me why it is called .exe?)
..without luck. Running that script manually does work, it updates dyndns, but it just doesn't get called when the can is assigned an IP.
dhcpcd is currently running on the machine, so I guess that is the key, it's just that the script is not being called (maybe the name of the script is wrong, or I have to change something in a .conf? ).

The tips and scripts provided here: http://www.slackware.com/~alien/dhcpc/ may help you getting this going. It explains "how it works" :-)

Cheers, Eric

Camino 10-23-2005 05:44 AM

To quote the very first line of that link
Quote:

The DHCPD client (dhcpcd) that Slackware uses up to release 10.2 is missing some
files that allow your computer to run specific commands when the DHCP client
obtains or releases it's IP address.
If only I knew that before putting all that effort into it :D

Atleast it seems like I was on the right track!

Thank you very much, I'll give it a shot :)


All times are GMT -5. The time now is 06:54 AM.