Developing

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.

With Docker

$ ./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

Releasing

Patch version

$ ./gradlew release

Major version

$ VERSION=3.7.0 && ./gradlew release -Prelease.releaseVersion=${VERSION} -Prelease.newVersion=${VERSION}