NTL are doing my head in, my cable modem IP has change 3 times in the last month so I'm looking at writting a few scripts to make my life easier. I have 3 linux machines which I access.
Machine X (which I own and has a fixed IP, I'm root) Machine Y(the one on the cable modem, also mine and root) Machine Z(a friend's fixed IP machine which I have a standard user account on) Z is my primary DNS server and X is my secondry. I was thinking of a BASH script on Y to get it's current IP, and telnet to another bash script (running via inetd.conf) on machine Y, that would then update it's own /etc/hosts file and dump the IP into a standard bind zone files (updating the serial) and ftp it onto machine Z. The key point here is a inetd.conf batchfile that listens on a specific port until it recieves a specific string followed by an IP address, can I use the "line" command in this kind of demon? Am I trying to reinvent the wheel here? Any thoughts or comments would be welcome. Rgds, Ian ________________________________________________________________________ Scottish Enterprise Network http://www.scottish-enterprise.com Headquarters Address & Contact Numbers 150 Broomielaw 5 Atlantic Quay Glasgow G2 8LU. Tel: +44 (0) 141 248 2700. Fax: +44 (0)141 221 3217 This message is sent in confidence for the addressee only. It may contain legally privileged information. The contents are not to be disclosed to anyone other than the addressee. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. -------------------------------------------------------------------- http://www.lug.org.uk http://www.linuxportal.co.uk http://www.linuxjob.co.uk http://www.linuxshop.co.uk --------------------------------------------------------------------
