![]() |
sponsored links |
|
|
sponsored links
|
|
1
8th August 12:24
External User
Posts: 1
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi everyone. I reciently installed ddclient and got a free dyndns dynamic domain. ddclient is configured and seems to be running fine though I learned it likes things in a specific order in the config file.(I needed to shift where uid/pwd was located) The problem I'm having is my isp is rotating ip's. That is why I got the domain to try to deal with things that need to point at my machine. However I'm wondering is there a way to auto update the /etc/hosts file. Now I'm using dhcp and it seems to make little diffrence what the actual ip is there but it bothers me all the same that due to rotation it's not accurate. Until reciently my ip would stick for the longest time. Probably about a year. Now sometimes on reboot or halt then boot it gives me a new ip. So I'm wondering what I should do to my /etc/hosts file and if there is anyway to auto insert into it the current ip. right now it pretty much just says the following: 127.0.0.1 localhost.localdomain [my current ip I just fed to it] localhost [my machines name] now I know I should probably at least change the second line's localhost to my dyndns. But I'm wondering if ddclient can grab and submit to dyndns.org my most current ip can't something do similar for those of us stuck rotating ips by outputting to our /etc/hosts? I'm also wondering if simply changing that second line above as far as localhost goes will work proper if I don't have a correct ip addy infront of it. Thanks in advance guys - - Susie - -- Arienadean/Celticess http://arienadean.tripod.com @>-;--`---- @>-;--`---- @>-;--`---- Peace is to be found only within, and unless one finds it there he will never find it at all. Peace lies not in the external world. It lies within one's own soul. - Ralph W. Trine -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA8NDsSPxyXPIpRw4RAl7YAJ0VQl8lwAxaA/V0CBTLCOEw0vyLsQCeMI6F /ztUZiNS85JPjyATaoOj7lw= =DT3H -----END PGP SIGNATURE----- -- gentoo-user@gentoo.org mailing list |
|
|
|
3
9th August 17:02
External User
Posts: 1
|
Don't take this wrong but I'm failing to see what your problem is. I
think other s maybe as well. AFAIK the /etc/hosts file is only locally significant. I use a dynamic dns client.. (different than yours) but I don't see the significance this has on Remote users. Is something not working they way it should or just not the way that you thought that it should? I have two interfaces. Eth0 public/dhcpcd address.. Eth1 private. my "/etc/hosts" file: 127.0.0.1 localhost 192.168.50.5 fusion.deadmeat.com fusion Anytime my IP changes my "dyndns client" updates my dyndns service provider. The dyndns provider updates the needed internet dns servers with changes to my registered dyndns name.. this can take some time to get around to the rest of the world but generally very quick for me. The dyndns client holds a cache/config file of some sort. Just before you reboot your dyndns client should set the ip info that you currently have to a cache file. When you power back up.... (and assuming that you have added ddclient to your default run level through "rc-update") the dyndns client will have your old info saved and compare it to what it currently see's on your NIC interface. If this differs then it will contact the dyndns provider and update your dyndns records and at the same time update the local dyndns cache file with the new ip.. During normal operations through out the day (depending on how you have set the ddclient config file) the dyndns client should poll your NIC interface every number of [minutes that you specified in your ddclient config file].... most current >ip can't something do similar for those of us stuck rotating ips by outputting to >our /etc/hosts? It should be doing this anytime your IP changes. Maybe you need to adjust your ddclient config file. http://linux.cudeso.be/linuxdoc/ddclient.php I don't understand what is broken and what your trying to accomplish with this. I've never personally tried to make "localhost" resolve to 2 different ips at the same time. -- gentoo-user@gentoo.org mailing list |
|