By default the WAF uses the public Google name server 8.8.8.8
for DNS name resolution. This is set in the Nginx conf file (typically located at: /home/<user>/app/nginx/conf.d/default.conf
).
server {
listen 443 ssl;
server_name _;
root /app/static/;
resolver 8.8.8.8;
To change the name server you can edit the resolver 8.8.8.8
line to any name server you want (Ex: an internal DNS server). Any changes to this file will require restarting Nginx with docker exec zwaf nginx -s reload
Learn more about setting the DNS resolver using Nginx.
DNS Resolution via Docker
It is possible to add name servers in addition to the existing name server defined in Nginx, via updating the docker-compose YAML file (usually located at: /home/<user>/docker-compose.yaml
). To accomplish this, add an extra_hosts
block to the zwaf
container. Example:
zwaf:
...
extra_hosts:
- "somehost:162.242.195.82"
- "otherhost:50.31.209.229"
Any changes made to docker-compose.yaml
will require restarting Docker with docker-compose down && docker-compose up -d
.