summaryrefslogtreecommitdiff
path: root/PERSONAL_INFRA.md
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2020-03-23 13:31:23 +0100
committeralex <alex@pdp7.net>2020-03-23 13:31:23 +0100
commit675c3513d03488002ff30427e943ba59b06e92cb (patch)
treef00f4b8502722dfa7bee84088cb3a6eba7710626 /PERSONAL_INFRA.md
parentcac8b2ee596aadc823228f717a850c88b4a19014 (diff)
Clarify dnsmasq communication
Diffstat (limited to 'PERSONAL_INFRA.md')
-rw-r--r--PERSONAL_INFRA.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/PERSONAL_INFRA.md b/PERSONAL_INFRA.md
index 1c756635..e5aa78df 100644
--- a/PERSONAL_INFRA.md
+++ b/PERSONAL_INFRA.md
@@ -28,9 +28,18 @@
I like having working DNS, so I run dnsmasq on both flats and for the Proxmox network on the Hetzner server.
It also does integrated DHCP (mostly everything gets a DHCP IP and thus, a hostname).
Every environment has a /24 network with DNS/DHCP and their own domain (hetzner.int.mydomain, flat1.int.mydomain, etc.).
-I've set up SRV records so DNS resolution works across networks (even reverse DNS).
I use Route 53 for DNS records (except those of my own networks). DNS records are created with Ansible playbooks.
+I have the following snippets on dnsmasq's configuration:
+
+```
+server=/flat1.mydomain/ip.of.flat1.dns
+rev-server=net.mask.of/flat1,ip.of.flat1.dns
+```
+
+So one dnsmasq instance can lookup records (even reverse DNS) on the other dnsmasq instances, so I can address systems on other networks by their name.
+This could also be achieved by NS records, if I'm not mistaken, but this way everything is private on my own dnsmasq servers and not on public DNS.
+
I join all networks using tinc in a mesh. Tinc keys are generated and distributed using an Ansible playbook.
On every network I've also set up ocserv to provide remote access if I'm outside these networks; I can pick the closest access point and reach my entire network.