/http-dns-delegate

This is a quick and dirty webserver for setting up a webserver to delegate DNS

Primary LanguageHTMLMIT LicenseMIT

HTTP DNS Delegate

This is a quick and dirty webserver for setting up a webserver to delegate DNS.

Building Static Pages

Run Requirement

How to run

To start the webserver, run one of the following commands:

npm start to start the server on port 8000

SERVICE_PORT=8081 npm start to start the server on port 8081

Test it out by navigating to localhost:8080 or localhost:8080/google.com.

Running Docker

  • Build the Docker Image

podman build . -t <username>/http-dns-delegate

  • Check the Docker Image

podman images

  • Run the Docker Image

podman run --env SERVICE_HOST=0.0.0.0 --env SERVICE_PORT=8001 -p 49160:8001 -d <username>/http-dns-delegate

  • Check on Status and Find Container ID

podman ps

  • Check Application Logs

podman logs <container ID>

  • Kill the Image

podman kill <container ID>