diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-04-03 16:00:23 -0400 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-04-03 16:00:23 -0400 |
commit | 61bdb137758ec18c74c8fb1b4030e496a2a70ebd (patch) | |
tree | 796c00a0b691e7196e98905fe7431bb63e09793e | |
parent | b2fae5840772f26e9b2f26d318ad6aaf5e4b550f (diff) | |
download | oldinfra-61bdb137758ec18c74c8fb1b4030e496a2a70ebd.tar.gz oldinfra-61bdb137758ec18c74c8fb1b4030e496a2a70ebd.zip |
fix dns
-rw-r--r-- | roles/mail/templates/docker-compose.yml.j2 | 2 | ||||
-rw-r--r-- | roles/vpn/templates/config.yml.j2 | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/roles/mail/templates/docker-compose.yml.j2 b/roles/mail/templates/docker-compose.yml.j2 index 7a7c664..08524e4 100644 --- a/roles/mail/templates/docker-compose.yml.j2 +++ b/roles/mail/templates/docker-compose.yml.j2 @@ -45,4 +45,6 @@ services: - POSTMASTER_ADDRESS={{ postmaster_email }} dns: - {{ nameserver_ip }} + extra_hosts: + - "lldap.internal.simponic.xyz:{{ johan_ip }}" restart: always diff --git a/roles/vpn/templates/config.yml.j2 b/roles/vpn/templates/config.yml.j2 index 64e00fb..88393a2 100644 --- a/roles/vpn/templates/config.yml.j2 +++ b/roles/vpn/templates/config.yml.j2 @@ -177,7 +177,8 @@ dns_config: # List of DNS servers to expose to clients. nameservers: - - {{ nameserver_ip }} + - 1.1.1.1 + - 1.0.0.1 # NextDNS (see https://tailscale.com/kb/1218/nextdns/). # "abc123" is example NextDNS ID, replace with yours. @@ -200,8 +201,12 @@ dns_config: # darp.headscale.net: # - 1.1.1.1 # - 8.8.8.8 + restricted_nameservers: + internal.simponic.xyz: + - {{ nameserver_ip }} + hatecomputers.club: + - {{ nameserver_ip }} - # Search domains to inject. domains: ['simponic.xyz', 'internal.simponic.xyz'] # Extra DNS records |