removed garbage

This commit is contained in:
Steffen Vogel 2013-04-23 17:55:17 +02:00
parent 68d2c9ebc2
commit 7f1c913f3b
6 changed files with 0 additions and 185 deletions

View file

@ -1 +0,0 @@
info.steffenvogel.de. IN KEY 0 3 157 gDlXSZtESw78I47O68UEigpPofn0XbpSpo5Vba+9IY38EYagPO/2C2Ch lZL+AvtN/ozRdra+p3+wLOKvVvqdrA==

View file

@ -1,3 +0,0 @@
Private-key-format: v1.2
Algorithm: 157 (HMAC_MD5)
Key: gDlXSZtESw78I47O68UEigpPofn0XbpSpo5Vba+9IY38EYagPO/2C2ChlZL+AvtN/ozRdra+p3+wLOKvVvqdrA==

View file

@ -1,65 +0,0 @@
-- phpMyAdmin SQL Dump
-- version 2.11.8.1deb5+lenny3
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Erstellungszeit: 03. Dezember 2009 um 15:17
-- Server Version: 5.0.51
-- PHP-Version: 5.2.11-0.dotdeb.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Datenbank: `st_sddns`
--
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `hosts`
--
CREATE TABLE IF NOT EXISTS `hosts` (
`id` int(11) NOT NULL auto_increment,
`hostname` varchar(255) NOT NULL,
`zone` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`generated` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Daten für Tabelle `hosts`
--
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `records`
--
CREATE TABLE IF NOT EXISTS `records` (
`id` int(11) NOT NULL auto_increment,
`created` datetime NOT NULL,
`expires` datetime NOT NULL,
`ip` varchar(15) NOT NULL,
`host_id` int(11) NOT NULL,
`zone` varchar(255) NOT NULL,
`ttl` int(11) NOT NULL,
`class` varchar(16) NOT NULL,
`type` varchar(16) NOT NULL,
`rdata` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Daten für Tabelle `records`
--

View file

@ -1,51 +0,0 @@
#!/bin/sh
###
#
# DynDns updatescript by Steffen Vogel (info@steffenvogel.de)
#
# dependencies: bind9utils (nslookup & nsupdate), wget, grep
#
###
# Private keyfile for authentification with the NS
KEYNAME="info.steffenvogel.de."
KEY="gDlXSZtESw78I47O68UEigpPofn0XbpSpo5Vba+9IY38EYagPO/2C2ChlZL+AvtN/ozRdra+p3+wLOKvVvqdrA=="
# The domain to update
DOMAIN="d.eta.li"
# The host to update
#HOST="laptop"
HOST=`hostname`
# The NS
#NS="ns0.y0x.org"
NS="83.169.1.58"
# Get netip
IP=`wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'`
# Time to live value in seconds for the alias rr
TTL=120
# Update!
nsupdate -y "$KEYNAME:$KEY" -v <<- EOF
server $NS
update delete $HOST.$DOMAIN. A
update add $HOST.$DOMAIN. $TTL A $IP
show
send
EOF
# Check record
DNSIP=`host $HOST.$DOMAIN $NS | grep 'has address' | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'`
if [ "$DNSIP" = "$IP" ]; then
echo "updated dns rr successfully"
exit 0
else
echo "error during dns rr update!" >&2
exit 1
fi

View file

@ -1,50 +0,0 @@
#!/bin/bash
###
#
# SDDNS updatescript by Steffen Vogel (info@steffenvogel.de)
#
# dependencies: curl, grep
#
################################################################################
# Settings
# Password
PW=Robens123wg
# Hostname
HOST=wg
# Zone
ZONE=0l.de
# Get netip
IP=$(wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>')
echo "Got netip: $IP"
################################################################################
# Expert settings
# Time to live value in seconds for the alias rr
TTL=120
# Class
CLASS=IN
# Type
TYPE=A
# Record data
RDATA=$IP
# Format of output
# allowed: xml, txt, csv, html
FORMAT=txt
################################################################################
# Do not touch anything under this!
URL="http://d.0l.de/update.$FORMAT?host=$HOST&zone=$ZONE&ttl=$TTL&class=$CLASS&type=$TYPE&rdata=$RDATA&pw=$PW"
echo "Updating record: $URL"
curl "$URL"

View file

@ -1,15 +0,0 @@
#!/bin/bash
cd /var/www/nulll/sddns
if [ ! -e syslog2mysql.pipe ]
then
mkfifo syslog2mysql.pipe
chown root: syslog2mysql.pipe
chmod 700 syslog2mysql.pipe
fi
while [ -e syslog2mysql.pipe ]
do
mysql st_sddns < syslog2mysql.pipe
done