···11+#!/bin/sh
22+33+if [ -z "$1" ]; then
44+echo "error: domain missing (sealight.xyz)"
55+ exit 1
66+fi
77+88+domain="$1"
99+errors=""
1010+1111+dig +short MX "$domain" | grep -q 'smtp-in-1.nullhex.com' || errors="smtp-in-1.nullhex.com record not found"
1212+dig +short MX "$domain" | grep -q 'smtp-in-2.nullhex.com' || errors="$errors\nsmtp-in-2.nullhex.com record not found"
1313+dig +short TXT "$domain" | grep -q '^"v=spf1 a mx ~all"$' || errors="$errors\nspf record not found"
1414+dig +short CNAME "key1._domainkey.$domain" | grep -q 'key1.nullhex.com' || errors="$errors\nkey1._domainkey.$domain record not found"
1515+dig +short TXT "_dmarc.$domain" | grep -q '^"v=DMARC1; p=quarantine;"$' || errors="$errors\ndmarc TXT record is missing"
1616+dig +short SRV "_autodiscover._tcp.$domain" | grep -q '443 autodiscover.nullhex.com.' || errors="$errors\nautodiscover SRV record is missing"
1717+dig +short SRV "_imaps._tcp.$domain" | grep -q '993 imap.nullhex.com.' || errors="$errors\nimap SRV record is missing"
1818+dig +short SRV "_submissions._tcp.$domain" | grep -q '465 smtp.nullhex.com.' || errors="$errors\nsmtp SRV record is missing"
1919+dig +short CNAME "autoconfig.$domain" | grep -q 'autoconfig.nullhex.com.' || errors="$errors\nautoconfig CNAME record is missing"
2020+2121+if [ ! -z "$errors" ]; then
2222+ echo "$errors"
2323+ exit 1
2424+else
2525+ echo "success! u are redy"
2626+fi
+30
dns/zones/sealight.xyz.zone
···11+; sealight.xyz Dumped Sat Dec 10 03:57:51 2022
22+;
33+sealight.xyz. 172800 IN SOA ns1.he.net. hostmaster.he.net. (
44+ 2022121008 ;serial
55+ 86400 ;refresh
66+ 7200 ;retry
77+ 3600000 ;expire
88+ 172800 ) ;minimum
99+autoconfig.sealight.xyz. 86400 IN CNAME autoconfig.nullhex.com.
1010+bridge.sealight.xyz. 300 IN A 69.61.38.225
1111+chat.sealight.xyz. 300 IN A 45.77.48.108
1212+element.sealight.xyz. 300 IN A 45.77.48.108
1313+git.sealight.xyz. 300 IN A 69.61.38.225
1414+jitsi.sealight.xyz. 300 IN A 69.61.38.225
1515+key1._domainkey.sealight.xyz. 86400 IN CNAME key1.nullhex.com.
1616+rss.sealight.xyz. 300 IN A 69.61.38.225
1717+sealight.xyz. 300 IN A 45.77.48.108
1818+sealight.xyz. 86400 IN MX 10 smtp-in-1.nullhex.com.
1919+sealight.xyz. 86400 IN MX 20 smtp-in-2.nullhex.com.
2020+sealight.xyz. 172800 IN NS ns1.he.net.
2121+sealight.xyz. 172800 IN NS ns2.he.net.
2222+sealight.xyz. 172800 IN NS ns3.he.net.
2323+sealight.xyz. 172800 IN NS ns4.he.net.
2424+sealight.xyz. 172800 IN NS ns5.he.net.
2525+sealight.xyz. 86400 IN TXT "v=spf1 a mx ~all"
2626+turn.sealight.xyz. 300 IN A 69.61.38.225
2727+_autodiscover._tcp.sealight.xyz. 86400 IN SRV 0 1 443 autodiscover.nullhex.com.
2828+_dmarc.sealight.xyz. 86400 IN TXT "v=DMARC1; p=quarantine;"
2929+_imaps._tcp.sealight.xyz. 86400 IN SRV 0 1 993 imap.nullhex.com.
3030+_submissions._tcp.sealight.xyz. 86400 IN SRV 0 1 465 smtp.nullhex.com.
+1-1
shell.nix
···55 default = pkgs.mkShell {
66 # Enable experimental features without having to specify the argument
77 NIX_CONFIG = "experimental-features = nix-command flakes";
88- nativeBuildInputs = with pkgs; [ nix home-manager git agenix deploy-rs ];
88+ nativeBuildInputs = with pkgs; [ nix home-manager git agenix deploy-rs dnscontrol ];
99 };
1010}