homelab/docs/Concepts/DNS.md

37 lines
1.1 KiB
Markdown
Raw Normal View History

2022-10-16 08:03:28 +00:00
# Architecture DNS
```mermaid
flowchart LR
subgraph External
2023-10-21 13:54:10 +00:00
externalRecursor[recursor]
GandiDns[ hetzner ducamps.win]
2022-10-16 08:03:28 +00:00
end
subgraph Internal
2023-10-21 13:54:10 +00:00
pihole[pihole]--ducamps.win-->NAS
2022-10-16 08:03:28 +00:00
pihole--service.consul-->consul[consul cluster]
2023-10-21 13:54:10 +00:00
pihole--->recursor
recursor--service.consul-->consul
2022-10-16 08:13:42 +00:00
DHCP --dynamic update--> NAS
2023-10-21 13:54:10 +00:00
NAS
recursor--ducamps.win-->NAS
consul--service.consul--->consul
clients--->pihole
clients--->recursor
2022-10-16 08:03:28 +00:00
end
2023-10-21 13:54:10 +00:00
pihole --> externalRecursor
recursor-->External
2022-10-16 08:03:28 +00:00
```
## Detail
2023-10-21 13:54:10 +00:00
Pihole container in nomad cluster is set as primary DNS as add blocker secondary DNS recursore is locate on gerard
2022-10-16 08:03:28 +00:00
2023-10-21 13:54:10 +00:00
DNS locate on NAS manage domain *ducamps.win* on local network each recursor forward each request on *ducamps.win* to this DNS.
2022-10-16 08:03:28 +00:00
2023-10-21 13:54:10 +00:00
Each DNS forward *service.consul* request to the consul cluster.
Each consul node have a consul redirection in systemd-resolved to theire own consul client
2022-10-16 08:03:28 +00:00
2022-10-16 08:13:42 +00:00
a DHCP service is set to do dynamic update on NAS DNS on lease delivery
2023-10-21 13:54:10 +00:00
external recursor are set on pihole on cloudflare and FDN in case of recursors faillure