Recent Changes - Search:

PmWiki

pmwiki.org

edit SideBar

Tips

Main.Tips History

Hide minor edits - Show changes to markup

May 05, 2006, at 04:04 AM by zeppo -
Added lines 1-5:

Slackware 10.2 Apache Log file

/var/log/apache/...

April 24, 2006, at 05:09 AM by zeppo -
Changed lines 10-13 from:

to:

You might be able to use http://checkip.dyndns.org:8245/ and clean it up a bit with grep and or sed

Changed lines 15-16 from:

Using the php page from above on my hosted site, so from my home computer I can use lynx ro return just my IP address, (you use this on the client to store the IP address in a text file_.

to:

Using the php page from above on my hosted site, so from my home computer I can use lynx ro return just my IP address, (you use this on the client to store the IP address in a text file).

April 23, 2006, at 06:15 PM by zeppo -
Changed lines 22-48 from:

To See what the Name resolves to

~$ping -c 1 www.virtual-weltanschauung.org | fgrep PING > test.log
gives this result

PING www.virtual-weltanschauung.org (70.254.84.166) 56(84) bytes of data.
:~$

What will it do if it can't resolve? Does it just use it's cache or does it check DNS?

To Update Zoneedit DNS For My Home Domain

Create a shell script that has this: (A line for each domain name)
#!/bin/sh
lynx -source -auth=NAME:PASSWORD 'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.virtual-weltanschauung.org'
lynx -source -auth=NAME:PASSWORD 'http://dynamic.zoneedit.com/auth/dynamic.html?host=harpo.virtual-weltanschauung.org'
lynx -source -auth=NAME:PASSWORD 'http://dynamic.zoneedit.com/auth/dynamic.html?host=virtual-weltanschauung.org' >> /tmp/zone.log


So....
I can get a text file that has just my current IP, and a text file that contains what I think the last IP for my domain name was (plus some other info on that one line).

Can I somehow regularly compare the IP from each text file and if they are different run the ZoneEdig update script?

to:
April 22, 2006, at 03:38 PM by Zeppo -
Changed line 49 from:

See my Linix tidbits part http://www.virtual-weltanschauung.com/pmwiki/pmwiki.php?n=Main.Tidbits

to:

See my Linux tidbits part http://www.virtual-weltanschauung.com/pmwiki/pmwiki.php?n=Main.Tidbits

April 22, 2006, at 02:57 PM by zeppo -
Changed lines 49-50 from:

See my Linix tidbits part

to:

See my Linix tidbits part http://www.virtual-weltanschauung.com/pmwiki/pmwiki.php?n=Main.Tidbits

April 22, 2006, at 01:53 PM by zeppo -
Changed lines 49-61 from:

Maybe this will help
(3) < Redirector Symbol
Syntax:
Linux-command < filename
To take input to Linux-command from file instead of key-board. For e.g. To take input for cat command give
$ cat < myfiles
from http://www.freeos.com/guides/lsst/index.html


And maybe grep will help (I could have them in two lines in one file).

http://pegasus.rutgers.edu/~elflord/unix/grep.html

to:

See my Linix tidbits part

April 21, 2006, at 05:40 PM by Zeppo -
Changed line 36 from:

lynx -source -auth=NAME:PASSWORD http://dynamic.zoneedit.com/auth/dynamic.html?host=www.virtual-weltanschauung.org' \\

to:

lynx -source -auth=NAME:PASSWORD 'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.virtual-weltanschauung.org' \\

April 21, 2006, at 05:39 PM by Zeppo -
Changed line 35 from:
  1. !/bin/sh
to:
  1. !/bin/sh\\
April 21, 2006, at 04:31 AM by zeppo -
Changed lines 59-60 from:

And maybe grep will help (I could have them in two lines in one file.

to:

And maybe grep will help (I could have them in two lines in one file).

April 21, 2006, at 04:31 AM by zeppo -
Added lines 57-61:

And maybe grep will help (I could have them in two lines in one file.

http://pegasus.rutgers.edu/~elflord/unix/grep.html

April 21, 2006, at 04:22 AM by zeppo -
Added lines 47-56:

Maybe this will help
(3) < Redirector Symbol
Syntax:
Linux-command < filename
To take input to Linux-command from file instead of key-board. For e.g. To take input for cat command give
$ cat < myfiles
from http://www.freeos.com/guides/lsst/index.html

April 21, 2006, at 04:02 AM by Zeppo -
Changed lines 16-17 from:

Using the php page from above on my hosted site, so from my home computer I can use lynx so it returns just my IP address, (you use this on the client to store the IP address in a text file_.

to:

Using the php page from above on my hosted site, so from my home computer I can use lynx ro return just my IP address, (you use this on the client to store the IP address in a text file_.

April 21, 2006, at 04:01 AM by Zeppo -
Changed lines 16-17 from:

Using my page on my hosted site from my home computer I can use a page that returns just my IP address, (you use this on the client to store the IP address in a text file_.

to:

Using the php page from above on my hosted site, so from my home computer I can use lynx so it returns just my IP address, (you use this on the client to store the IP address in a text file_.

April 21, 2006, at 04:00 AM by Zeppo -
Changed lines 16-17 from:

For my page on my hosted site that returns just your up address, you use this on the client to store the IP address in a text file

to:

Using my page on my hosted site from my home computer I can use a page that returns just my IP address, (you use this on the client to store the IP address in a text file_.

April 21, 2006, at 03:57 AM by Zeppo -
Changed lines 30-31 from:

What will it do if it can't resolve? Does it just use it's cache or does it check DNS?

to:

What will it do if it can't resolve? Does it just use it's cache or does it check DNS?

April 21, 2006, at 03:56 AM by Zeppo -
Changed lines 32-33 from:

'To Update Zoneedit DNS For My Home Domain

to:

To Update Zoneedit DNS For My Home Domain

April 21, 2006, at 03:56 AM by Zeppo -
Changed lines 44-45 from:

I can get a text file that has just my current IP, and a text file that contains what I think the last IP for my domain name was.

to:

I can get a text file that has just my current IP, and a text file that contains what I think the last IP for my domain name was (plus some other info on that one line).

April 21, 2006, at 03:55 AM by Zeppo -
Changed line 34 from:

Create a shell script that has this:\\

to:

Create a shell script that has this: (A line for each domain name)\\

Changed lines 43-46 from:

So

to:

So....
I can get a text file that has just my current IP, and a text file that contains what I think the last IP for my domain name was.

Can I somehow regularly compare the IP from each text file and if they are different run the ZoneEdig update script?

April 21, 2006, at 03:53 AM by Zeppo -
Changed lines 30-43 from:

What will it do if it can't resolve? Does it just use it's cache or does it check DNS?

to:

What will it do if it can't resolve? Does it just use it's cache or does it check DNS?

'To Update Zoneedit DNS For My Home Domain

Create a shell script that has this:
#!/bin/sh lynx -source -auth=NAME:PASSWORD http://dynamic.zoneedit.com/auth/dynamic.html?host=www.virtual-weltanschauung.org'
lynx -source -auth=NAME:PASSWORD 'http://dynamic.zoneedit.com/auth/dynamic.html?host=harpo.virtual-weltanschauung.org'
lynx -source -auth=NAME:PASSWORD 'http://dynamic.zoneedit.com/auth/dynamic.html?host=virtual-weltanschauung.org' >> /tmp/zone.log


So

April 21, 2006, at 03:48 AM by Zeppo -
Changed lines 18-19 from:

lynx -dump "http://www.virtual-weltanschauung.com/t3.php" > ip.log

to:

lynx -dump "http://www.virtual-weltanschauung.com/t3.php" > ip.log

April 21, 2006, at 03:47 AM by Zeppo -
Changed line 30 from:

What will it do if it can't resolve?

to:

What will it do if it can't resolve? Does it just use it's cache or does it check DNS?

April 21, 2006, at 03:47 AM by Zeppo -
Changed line 27 from:

64 bytes from ppp-70-254-84-166.dsl.rcsntx.swbell.net (70.254.84.166): icmp_seq=1 ttl=64 time=0.566 ms\\

to:

PING www.virtual-weltanschauung.org (70.254.84.166) 56(84) bytes of data.\\

April 21, 2006, at 03:46 AM by Zeppo -
Changed line 24 from:

~$ ping -c 1 www.virtual-weltanschauung.org | fgrep icmp_seq > test.log\\

to:

~$ping -c 1 www.virtual-weltanschauung.org | fgrep PING > test.log\\

April 21, 2006, at 03:42 AM by Zeppo -
Changed line 24 from:

~$ ping -c 1 www.virtual-weltanschauung.org | fgrep icmp_seq\\ > test.log

to:

~$ ping -c 1 www.virtual-weltanschauung.org | fgrep icmp_seq > test.log\\

April 21, 2006, at 02:42 AM by 70.254.84.166 -
Changed line 27 from:

64 bytes from ppp-70-254-84-166.dsl.rcsntx.swbell.net (70.254.84.166): icmp_seq=1 ttl=64 time=0.566 ms

to:

64 bytes from ppp-70-254-84-166.dsl.rcsntx.swbell.net (70.254.84.166): icmp_seq=1 ttl=64 time=0.566 ms\\

April 21, 2006, at 02:42 AM by 70.254.84.166 -
Changed line 24 from:

~$ ping -c 1 www.virtual-weltanschauung.org | fgrep icmp_seq\\

to:

~$ ping -c 1 www.virtual-weltanschauung.org | fgrep icmp_seq\\ > test.log

Changed lines 28-29 from:

schiaraffenland@harpo:~$

to:

:~$

What will it do if it can't resolve?

April 21, 2006, at 02:39 AM by 70.254.84.166 -
Added lines 22-29:

To See what the Name resolves to

~$ ping -c 1 www.virtual-weltanschauung.org | fgrep icmp_seq
gives this result

64 bytes from ppp-70-254-84-166.dsl.rcsntx.swbell.net (70.254.84.166): icmp_seq=1 ttl=64 time=0.566 ms schiaraffenland@harpo:~$

April 21, 2006, at 02:16 AM by Zeppo -
Added lines 1-2:

Display IP Address

April 21, 2006, at 02:16 AM by Zeppo -
Added lines 1-11:

On a remote server to display the IP of the the requesting computer I used this

<?php
$ip = getenv('REMOTE_ADDR');
PRINT("$ip");
?>

Added line 13:
April 21, 2006, at 02:14 AM by Zeppo -
Changed lines 4-5 from:

lynx -dump "http://en.wikipedia.org/wiki/$1" > ip.log

to:

lynx -dump "http://www.virtual-weltanschauung.com/t3.php" > ip.log

April 21, 2006, at 02:13 AM by Zeppo -
Added lines 1-7:

Save Page Results as Text File For my page on my hosted site that returns just your up address, you use this on the client to store the IP address in a text file

lynx -dump "http://en.wikipedia.org/wiki/$1" > ip.log

Whereas with a web brower it would simply display the IP number, this puts it wherever you want it.

Edit - History - Print - Recent Changes - Search
Page last modified on May 05, 2006, at 04:04 AM