you guys are great i love the internet :)
> From: Dave Ihnat <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Wed, 2 Jan 2002 12:50:32 -0600 > To: [EMAIL PROTECTED] > Subject: Re: get ip script > > On Wed, Jan 02, 2002 at 10:24:43AM -0800, gabriel wrote: >> this really should be easy... i'm thinking of doing away with my static ip >> since it costs so much. but this means that i won't be able to just >> memorise a single string of numbers when i want to ftp into my box from work >> etc. > > DNS is you friend. > >> so i'm wondering: >> could someone show me an example of a script i could use that would get the >> ip of my machine and email it to me on a daily basis? > > Well, you could do something like: > > IFCONFIG="/sbin/ifconfig -i eth1" > [EMAIL PROTECTED] > > CUR_IP=`$IFCONFIG | grep "inet addr" | cut -f2 -d':' | sed -e "s/ .*//"`; > > cat <<! | mail -s "IP ADDRESS" $MAILTO > Current IP: $CUR_IP > ! > >> is there an easier way? >> what about dynamic dns? what is that? > > Got it in one. DNS registration allows you to associate your IP > with a domain name. Unfortunately, if you use DHCP this may change, > although most providers won't do so unless your machine is shutdown or > loses connectivity, and most won't even then. On both DSL and cable, > I've had the same DHCP assigned address for months on end--in fact, > on neither DirecTV (nee Telocity) nor AT&T Cable did I ever have a > reassignment of my IP. Plus, I've administrative rights to my primary > and secondary DNS servers, anyway. Thus, I've dealt with traditional DNS, > and written scripts that run periodically on my system to check for changes > in IP on the network interface with respect to my DNS zone files. > > Dynamic DNS simply allows your system to submit IP changes to your DNS > server automatically on IP reassignment. This will usually result in > a short period of service interruption while all the cached nameservers > expire and update your records--either you, or the dynamic DNS provider, > want short timeouts to minimize this outage. There are both commercial > and free organizations offering dynamic DNS; it's typically inexpensive, > even if you pay for it, and there are reports that service reliability > from the free services can range from very good to questionable. > > > Check out www.dyndns.com--hmm, I see they've stopped accepting > new accounts until they can comfortably handle the new load--or > www.dyndns.org, which is a different organization, despite the similarity > of names. Do a Google search with keywords "dynamic DNS free", if you > want to find other free providers, or leave off the 'free' keyword if you > don't care. > > G'luck, and have fun, > -- > Dave Ihnat > [EMAIL PROTECTED] > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list