unneeded files
This commit is contained in:
parent
16268f51cc
commit
98e9c659f6
2 changed files with 0 additions and 29 deletions
26
nsupdate.sh
26
nsupdate.sh
|
@ -1,26 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Registers the local IPv6 address to the DNS
|
||||
|
||||
IP6="`whatsmyip6`"
|
||||
KNOT="${KNOT:-${IP6}}"
|
||||
|
||||
test -z "${IP6}" && exit 1
|
||||
test -z "${KNOT}" && exit 1
|
||||
test -z "${DOMAIN}" && exit 1
|
||||
|
||||
# Add a dot if the hostname contains the domain
|
||||
echo "${HOSTNAME}" | grep -q "\.${DOMAIN}$" && DOT="."
|
||||
|
||||
knsupdate <<DNS
|
||||
server ${KNOT}
|
||||
zone ${DOMAIN}.
|
||||
origin ${DOMAIN}.
|
||||
ttl 60
|
||||
del ${HOSTNAME}${DOT} AAAA
|
||||
add ${HOSTNAME}${DOT} AAAA ${IP6}
|
||||
send
|
||||
quit
|
||||
DNS
|
||||
|
||||
exit $?
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
ip address show ${1:-eth0} | grep inet6 | grep global | tr -s " " | cut -d " " -f 3 | cut -d / -f 1
|
Loading…
Reference in a new issue