# Docker WEB hosting DNS maybe?

**URL:** <https://forums.docker.com/t/docker-web-hosting-dns-maybe/95656>\
**Category:** General\
**Created:** [June 20, 2020, 1:31pm UTC](https://forums.docker.com/t/docker-web-hosting-dns-maybe/95656 "2020-06-20T13:31:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neridaar](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@neridaar](https://forums.docker.com/u/neridaar)\
**Post date:** [June 20, 2020, 1:31pm UTC](https://forums.docker.com/t/docker-web-hosting-dns-maybe/95656/1 "2020-06-20T13:31:43Z")

</div>

Hello everyone,

My exercise is to make a web hosting with docker using Dockerfile and docker-compose.

I’m on Vmware Workstation, with the debian buster distribution.

I currently have a docker-composer which has two services: mariadb and a custom build redirected to Dockerfile, which uses the official php:7.4-apache image.

I configured my apache2 with a vhost and to make the vhost work, a dns is required so I use the bind9 daemon.

I have to make my containers be “server” and my vm be client. On the client side I have configured my /etc/resolv.conf.

On the server side, my dns zone /var/cache/bind/heberg.projet.db

and also my /etc/bind/named.conf in the container.

On the apache2 side I have configured my VHOST /etc/apache2/working-sites/neridaar.heberg.projet.conf .

Unfortunately, my local site “neridaar.heberg.projet” doesn’t work …

 ![image](https://global.discourse-cdn.com/docker/original/3X/5/5/550476d28dad9b7b6dbfc38ef674933924468aac.png)

Thank you for helping me.
