DNS and Email
Start here when changing DNS rewrites or TrueNAS email alerts.
Source Paths
docs/infrastructure/opentofu/stacks/adguardhome.mddocs/infrastructure/opentofu/index.mddocs/operations/runbooks/truenas.mdinfrastructure/opentofu/stacks/prod/adguardhome/main.tf
Current State
- AdGuard Home manages rewrites for
pve1.home.hovirix.dev,pve2.home.hovirix.dev,pve3.home.hovirix.dev, andtruenas.home.hovirix.dev. - Current answers are
10.20.0.11,10.20.0.12,10.20.0.13, and10.30.0.106. - TrueNAS sends alerts through Resend SMTP at
smtp.resend.com:587with STARTTLS. - Proxmox SMTP notifications use the same Resend SMTP relay through Ansible.
- TrueNAS alert mail goes to
homelab@hovirix.dev.
DNS Rewrites
- Edit
infrastructure/opentofu/stacks/prod/adguardhome/main.tf. - Update the
dns_recordsmap. - Run
task tofu:plan stack=adguardhome. - Review the plan for only the intended rewrite changes.
- Run
task tofu:apply stack=adguardhome. - Verify name resolution from a client machine.
bash
getent hosts pve1.home.hovirix.devEmail Alerts
- Follow the TrueNAS runbook for SMTP and alert settings.
- Keep SMTP credentials out of the repository.
- Confirm the alert recipient is
homelab@hovirix.dev. - Send a test message after changing the SMTP settings.
- Trigger or send a test alert if the UI supports it.
Notes
- DNS changes belong in OpenTofu, not in manual AdGuard edits.
- Email credentials belong in the secret store only.
