Response Policy Zones

Last Modification

What are Response Policy Zones?

DNS Server Options

PiHole

Bind9

Installation

Ubuntu

Installing Docker

I'm not sure which option will be best for our environment and because these servers will be for testing purposes only, I am going to install each in a docker container. So the first step is to get docker installed.

  1. Add the official Docker repository GPG key:

    sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
  2. Add the Docker Repo to APT:

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    
  3. Now Update:

    sudo apt-get update
    
  4. Verify the package file is being pulled from the Docker Repo. The output should show docker-ce: then information about the package.

    apt-cache policy docker-ce
    
  5. The system is now ready to install Docker:

    sudo apt-get install -y docker-ce
    
  6. Enable and start the Docker service:

    sudo systemctl enable docker
    sudo systemctl start docker
    sudo systemctl status docker
    
Note

I've created a docker directory in my homedir with a subdirectory for both bind9 and PiHole, where I will be keeping my docker-compose.yml files.

  1. Download the latest version:

    sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
    
  2. Ensure Docker compose is executable:

    sudo chmod +x /usr/local/bin/docker-compose
    
  3. Verify it runs.

    docker-compose --version
    

PiHole Install

Bind9 Install