Thread View: nl.comp.os.linux
1 messages
1 total messages
Started by Sander
Mon, 14 Jun 1999 00:00
Automatisch update scriptje voor de gratis dns service at http://www.kpn.cx/Free-dyn-dns-nls.html
Author: Sander
Date: Mon, 14 Jun 1999 00:00
Date: Mon, 14 Jun 1999 00:00
62 lines
2734 bytes
2734 bytes
Hi, met een beetje spieken hier en daar heb ik een scriptje gemaakt voor de
gratis dns service bij http://www.kpn.cx/Free-dyn-dns-nls.html
Het scriptje werkt heel eenvoudig, en het is makkelijk om bijv een entry in je
/etc/ppp/ip-up.local ervoor te maken. *Wel* is het zo dat het werkt voor
alle domeinen met *.cs.kpn.cx. Mocht je dus bijv. een domein hebben als
*.dyn.kpn.cx is het heel gemakkelijk aan te passen m.b.v. een editor. Ik heb
ervoor gekozen om het connect naar *.kpn.cx op poort 8001 te doen, voor de
mensen die via een proxy gaan, zoals ik via een transparante proxy moet gaan.
Als je het download, doe dan nog even een chmod +x erop. Vragen en/of
opmerkingen zijn altijd welkom.
(nb. : Je *moet* dus eerst een domein naam registeren en deze in het scriptje
op de daarvoor bestemde plaatsen invoeren, alvorens het wil werken, ook heeft
het script lynx nodig).
Veel plezier ermee
Sander
---------------------------------------------------------------------
#!/bin/sh
# *.cs.kpn.cx update/offline script
# 1999 by Sander
# ADRESS = URL of registration script for user.cs.kpn.cx
ADRESS="http://cs.kpn.cx:8001/cgi-bin/cs.cgi"
# PASS = Your password
PASS="password"
# USER = Hostname that you registered
# at http://www.kpn.cx/Free-dyn-dns-nls.html
USER="hostname"
case "$1" in
online)
echo "Updating user.cs.kpn.cx entry..."
COMMANDS="username=$USER;password=$PASS;login=Login;updatehost=Go"
;;
offline)
echo "Unpoints your hostname (0.0.0.0) from current address until next update..."
COMMANDS="username=$USER;password=$PASS;login=Login;offline=Go"
;;
*)
echo "Usage: $0 {online|offline}"
exit 1
esac
echo $COMMANDS | lynx -dump -post_data $ADRESS | grep Currently
-----------------------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads