2022-02-02 11:37:12 +01:00
If you want or have to use an external DNS service, you can either set a forwarder in Unbound or copy an override file to define external DNS servers:
2022-05-13 11:29:19 +02:00
!!! warning
Please do not use a public resolver like we did in the example above. Many - if not all - blacklist lookups will fail with public resolvers, because blacklist server has limits on how much requests can be done from one IP and public resolvers usually reach this limits. < br >
**Important** : Only DNSSEC validating DNS services will work.
2022-02-02 11:37:12 +01:00
## Method A, Unbound
Edit `data/conf/unbound/unbound.conf` and append the following parameters:
```
forward-zone:
name: "."
forward-addr: 8.8.8.8 # DO NOT USE PUBLIC DNS SERVERS - JUST AN EXAMPLE
forward-addr: 8.8.4.4 # DO NOT USE PUBLIC DNS SERVERS - JUST AN EXAMPLE
```
Restart Unbound:
2022-12-31 11:42:41 +01:00
=== "docker compose (Plugin)"
``` bash
docker compose restart unbound-mailcow
```
=== "docker-compose (Standalone)"
``` bash
docker-compose restart unbound-mailcow
```
2022-02-02 11:37:12 +01:00
## Method B, Override file
```
cd /opt/mailcow-dockerized
2022-09-01 09:33:47 +02:00
cp helper-scripts/docker-compose.override.yml.d/EXTERNAL_DNS/docker-compose.override.yml .
2022-02-02 11:37:12 +01:00
```
2022-09-01 09:33:47 +02:00
Edit `docker-compose.override.yml` and adjust the IP.
2022-02-02 11:37:12 +01:00
2022-12-31 11:42:41 +01:00
Afterwards stop and start the Docker Stack again:
=== "docker compose (Plugin)"
``` bash
docker compose down
docker compose up -d
```
=== "docker-compose (Standalone)"
``` bash
docker-compose down
docker-compose up -d
```