Developing

Requirements

See the requirements.

Vanilla Developing

Backend

Play class com.mageddo.dnsproxyserver.App or run

$  ./gradlew clean shadowJar && java -jar ./build/libs/dns-proxy-server-*-all.jar 

Make your DNS queries to IP and TCP/UDP ports indicated at the console log.

Front end app (optional)

$ cd app && npm start

Then access http://localhost:3000/ , front end will proxy to http://localhost:5380 backend.

Docker Developing

$ ./gradlew clean build shadowJar
$ docker-compose -f docker-compose-dev.yml up backend

or

$ ./gradlew clean build shadowJar -i -x check
$ docker-compose -f docker-compose-dev.yml run --rm -it backend bash
$ java -jar dns-proxy-server-*-all.jar