switch domain from kaz.milxc to kaz.sns
This commit is contained in:
42
files/snster-kaz/tld-sns/group.yml
Normal file
42
files/snster-kaz/tld-sns/group.yml
Normal file
@ -0,0 +1,42 @@
|
||||
version: 1
|
||||
|
||||
header:
|
||||
name: TLD SNS AS
|
||||
comment: The .sns TLD auth NS
|
||||
|
||||
hosts:
|
||||
router:
|
||||
master: alpine
|
||||
network:
|
||||
interfaces:
|
||||
eth0:
|
||||
bridge: transit-a
|
||||
ipv4: 100.64.0.40/24
|
||||
ipv6: 2001:db8:b000::40/48
|
||||
eth1:
|
||||
bridge: tld-sns-lan
|
||||
ipv4: 100.100.20.1/24
|
||||
ipv6: 2001:db8:a020::1/48
|
||||
templates:
|
||||
- bgprouter:
|
||||
asn: 8
|
||||
asdev: eth1
|
||||
neighbors4: 100.64.0.1 as 30
|
||||
neighbors6: 2001:db8:b000::1 as 30
|
||||
- resolv:
|
||||
nameserver: 100.100.100.100
|
||||
domain: tld-sns.sns
|
||||
|
||||
ns:
|
||||
network:
|
||||
interfaces:
|
||||
eth0:
|
||||
bridge: tld-sns-lan
|
||||
ipv4: 100.100.20.10/24
|
||||
ipv6: 2001:db8:a020::10/48
|
||||
gatewayv4: 100.100.20.1
|
||||
gatewayv6: 2001:db8:a020::1
|
||||
templates:
|
||||
- resolv:
|
||||
domain: tld-sns.sns
|
||||
ns: 100.100.100.100
|
41
files/snster-kaz/tld-sns/ns/provision.sh
Normal file
41
files/snster-kaz/tld-sns/ns/provision.sh
Normal file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
# .sns registry
|
||||
|
||||
set -e
|
||||
if [ -z $SNSTERGUARD ] ; then exit 1; fi
|
||||
DIR=`dirname $0`
|
||||
cd `dirname $0`
|
||||
|
||||
# disable systemd-resolved which conflicts with nsd
|
||||
echo "DNSStubListener=no" >> /etc/systemd/resolved.conf
|
||||
systemctl stop systemd-resolved
|
||||
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y nsd
|
||||
|
||||
echo -e "zone:
|
||||
name: \"sns.\"
|
||||
zonefile: \"sns.zone\"
|
||||
" > /etc/nsd/nsd.conf
|
||||
|
||||
echo -e "\$TTL 86400
|
||||
\$ORIGIN sns.
|
||||
@ 1D IN SOA ns.sns. hostmaster.sns. (
|
||||
2002022401 ; serial
|
||||
3H ; refresh
|
||||
15 ; retry
|
||||
1w ; expire
|
||||
3h ; nxdomain ttl
|
||||
)
|
||||
IN NS ns.sns.
|
||||
ns IN A 100.100.20.10 ;name server definition
|
||||
ns IN AAAA 2001:db8:a020::10
|
||||
kaz.sns. IN NS ns.kaz.sns.
|
||||
ns.kaz.sns. IN A 100.80.0.2
|
||||
isp-a.sns. IN NS ns.isp-a.sns.
|
||||
ns.isp-a.sns. IN A 100.120.1.2
|
||||
ns.isp-a.sns. IN AAAA 2001:db8:120:1::2
|
||||
mica.sns. IN NS ns.mica.sns.
|
||||
ns.mica.sns. IN A 100.82.0.2
|
||||
ns.mica.sns. IN AAAA 2001:db8:82::2
|
||||
" >> /etc/nsd/sns.zone
|
Reference in New Issue
Block a user