Skip to content

DNS forwarder for AWS 20150804

Latest
Compare
Choose a tag to compare
released this 04 Aug 20:26
· 3 commits to master since this release

A container with BIND 9.8.1-P1 configured as a forwarder to AWS VPC DNS (by extracting the +2 DNS IP from AWS metadata).

Installing the image

Click on the Images item in the Container section of the VNS3 menu. Then select Upload Image.

Give the image a Name: e.g. dnsforwardaws

Paste the URL https://github.com/cohesivenet/dockerfiles/releases/download/dnsforwardaws-20150804/dnsforwardaws.tar.gz into the Image file url: box.

Click Upload

Running a container

Once the Status of the imported image is Ready then click the Action button and select Allocate.

Give the container a Name: e.g. dnsforwardaws

The Command: is /bin/bash /startdns.sh

Click Allocate

Make a note of the IP Address given to the container e.g. 198.51.100.2

Routing traffic to the container

Click on the Firewall item in the Connections section of the VNS3 menu.

Add firewall rules such as:

MACRO_CUST -o eth0 -s 198.51.100.0/28 -j MASQUERADE
PREROUTING_CUST -i eth0 -p udp -s 0.0.0.0/0 --dport 53 -j DNAT --to 198.51.100.2:53

Where 198.51.100.2 is the IP of the container once allocated. Then click Save and activate

The VNS3 manager (and all of its IPs will now work) as a DNS server.