Files
homelab/dns

Network Management

.reeseapps domains are for hosted service that do something. They are usually accessible via the web and are usually public. Web apps, Minecraft servers, other game servers, etc. are all reeseapps domains.

.reeselink domains are for linking machines together. They are for SSH, Cockpit, NFS, SMB, ISCSI, and other machine to machine connections. They can be public or private and are mostly for convenience.

DNS Caching

Use unifi to cache important DNS records. The following are critical:

  • driveripper-wg.reeselink.com Host (AAAA) fd00:fd41:d0f1:1010::6
  • democratic-csi-server.reeselink.com Host (A) fd00:fd41:d0f1:1010::6
  • driveripper.reeseapps.com Host (AAAA) 2600:1700:1e6c:a81f:153e:9c35:8ff3:fa3
  • driveripper.reeseapps.com Host (AAAA) 2600:1700:1e6c:a81f:793d:7abf:e94d:9bc4
aws route53 change-resource-record-sets --hosted-zone-id Z0092652G7L97DSINN18 --change-batch file://dns/reeselink.json

You can extract these addresses into a text file with:

# IPV6
cat dns/reeselink.json | \
    jq -c -r '[ .Changes.[] |
        select( .ResourceRecordSet.Type | . == "AAAA") ]
        | .[]
        | .ResourceRecordSet
        | .Name,.ResourceRecords.[].Value' > dns/ipv6.txt

# IPV4
cat dns/reeselink.json | \
    jq -c -r '[ .Changes.[] | 
        select( .ResourceRecordSet.Type | . == "A") ] 
        | .[]
        | .ResourceRecordSet
        | .Name,.ResourceRecords.[].Value' > dns/ipv4.txt

Reeseapps Addresses

aws route53 change-resource-record-sets --hosted-zone-id Z012820733346FJ0U4FUF --change-batch file://dns/reeseapps.json

Duconet WG Addresses

After generating new addresses from wireguard's vars.yaml. Use find and replace regex with the following:

(.*.reeselink.com)\n(.*)$
        {
            "Action": "UPSERT",
            "ResourceRecordSet": {
                "Name": "$1",
                "Type": "AAAA",
                "TTL": 300,
                "ResourceRecords": [
                    {
                        "Value": "$2"
                    }
                ]
            }
        },