From 96e7049dc6d491581cbff3880b8b543095152f87 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sat, 27 Jun 2020 23:05:38 +0100 Subject: [PATCH] Add bind9 and Docker files --- README.md | 4 ++++ bind9/README.md | 7 +++++++ bind9/db.hivebedrock.network | 13 +++++++++++++ bind9/db.mco.cubecraft.net | 11 +++++++++++ bind9/db.mco.lbsg.net | 11 +++++++++++ bind9/db.mco.mineplex.com | 11 +++++++++++ bind9/db.play.inpvp.net | 11 +++++++++++ bind9/named.conf.local | 37 ++++++++++++++++++++++++++++++++++++ docker/Dockerfile | 6 ++++++ docker/README.md | 10 ++++++++++ 10 files changed, 121 insertions(+) create mode 100644 bind9/README.md create mode 100644 bind9/db.hivebedrock.network create mode 100644 bind9/db.mco.cubecraft.net create mode 100644 bind9/db.mco.lbsg.net create mode 100644 bind9/db.mco.mineplex.com create mode 100644 bind9/db.play.inpvp.net create mode 100644 bind9/named.conf.local create mode 100644 docker/Dockerfile create mode 100644 docker/README.md diff --git a/README.md b/README.md index eb88b18..ed5a664 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ GeyserConnect is a server that Minecraft: Bedrock Edition clients can connect to **Please note, this project is still a work in progress and should not be used on production. Expect bugs!** +If you wish to run this in docker and/or use DNS redirection please see the appropriate folders in this repo. +Docker: [here](docker) +DNS: [here](bind9) + ## TODO - [x] Auto start Geyser instance - [x] Transfer player to Geyser instance and connect to correct server diff --git a/bind9/README.md b/bind9/README.md new file mode 100644 index 0000000..02d899a --- /dev/null +++ b/bind9/README.md @@ -0,0 +1,7 @@ +# GeyserConnect with DNS +This contains the basic bind9 configs for use with GeyserConnect + +## Setup +1. Install bind9 using `sudo apt install bind9` +2. Download these files and place them inside `/etc/bind/` overwriting the `named.conf.local` file +3. Run `sudo service bind9 restart` to restart the service \ No newline at end of file diff --git a/bind9/db.hivebedrock.network b/bind9/db.hivebedrock.network new file mode 100644 index 0000000..77f7441 --- /dev/null +++ b/bind9/db.hivebedrock.network @@ -0,0 +1,13 @@ +@ in SOA hivebedrock.network. admin.hivebedrock.network. ( + 2014030801 ; serial + 1D ; refresh + 1H ; retry + 1W ; expire + 3H ) ; minimum + +@ NS hivebedrock.network. + + IN A 167.71.133.54 + IN AAAA 2a03:b0c0:1:e0::6a5:b001 +geo IN A 167.71.133.54 + IN AAAA 2a03:b0c0:1:e0::6a5:b001 diff --git a/bind9/db.mco.cubecraft.net b/bind9/db.mco.cubecraft.net new file mode 100644 index 0000000..2061231 --- /dev/null +++ b/bind9/db.mco.cubecraft.net @@ -0,0 +1,11 @@ +@ in SOA mco.cubecraft.net. admin.mco.cubecraft.net. ( + 2014030801 ; serial + 1D ; refresh + 1H ; retry + 1W ; expire + 3H ) ; minimum + +@ NS mco.cubecraft.net. + + IN A 167.71.133.54 + IN AAAA 2a03:b0c0:1:e0::6a5:b001 \ No newline at end of file diff --git a/bind9/db.mco.lbsg.net b/bind9/db.mco.lbsg.net new file mode 100644 index 0000000..bc46e5b --- /dev/null +++ b/bind9/db.mco.lbsg.net @@ -0,0 +1,11 @@ +@ in SOA mco.lbsg.net. admin.mco.lbsg.net. ( + 2014030801 ; serial + 1D ; refresh + 1H ; retry + 1W ; expire + 3H ) ; minimum + +@ NS mco.lbsg.net. + + IN A 167.71.133.54 + IN AAAA 2a03:b0c0:1:e0::6a5:b001 \ No newline at end of file diff --git a/bind9/db.mco.mineplex.com b/bind9/db.mco.mineplex.com new file mode 100644 index 0000000..4c3964c --- /dev/null +++ b/bind9/db.mco.mineplex.com @@ -0,0 +1,11 @@ +@ in SOA mco.mineplex.com. admin.mco.mineplex.com. ( + 2014030801 ; serial + 1D ; refresh + 1H ; retry + 1W ; expire + 3H ) ; minimum + +@ NS mco.mineplex.com. + + IN A 167.71.133.54 + IN AAAA 2a03:b0c0:1:e0::6a5:b001 \ No newline at end of file diff --git a/bind9/db.play.inpvp.net b/bind9/db.play.inpvp.net new file mode 100644 index 0000000..7d4ea0b --- /dev/null +++ b/bind9/db.play.inpvp.net @@ -0,0 +1,11 @@ +@ in SOA play.inpvp.net. admin.play.inpvp.net. ( + 2014030801 ; serial + 1D ; refresh + 1H ; retry + 1W ; expire + 3H ) ; minimum + +@ NS play.inpvp.net. + + IN A 167.71.133.54 + IN AAAA 2a03:b0c0:1:e0::6a5:b001 \ No newline at end of file diff --git a/bind9/named.conf.local b/bind9/named.conf.local new file mode 100644 index 0000000..4564106 --- /dev/null +++ b/bind9/named.conf.local @@ -0,0 +1,37 @@ +// +// Do any local configuration here +// + +// Consider adding the 1918 zones here, if they are not used in your +// organization +//include "/etc/bind/zones.rfc1918"; + +zone "hivebedrock.network" IN { + type master; + file "/etc/bind/db.hivebedrock.network"; + allow-query { any; }; +}; + +zone "mco.mineplex.com" IN { + type master; + file "/etc/bind/db.mco.mineplex.com"; + allow-query { any; }; +}; + +zone "play.inpvp.net" IN { + type master; + file "/etc/bind/db.play.inpvp.net"; + allow-query { any; }; +}; + +zone "mco.lbsg.net" IN { + type master; + file "/etc/bind/db.mco.lbsg.net"; + allow-query { any; }; +}; + +zone "mco.cubecraft.net" IN { + type master; + file "/etc/bind/db.mco.cubecraft.net"; + allow-query { any; }; +}; diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..a078f5d --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,6 @@ +FROM openjdk:8-jre-slim +RUN mkdir /gsc +WORKDIR /gsc +EXPOSE 19132/udp +EXPOSE 19133/udp +CMD ["java", "-Xms1G", "-jar", "GeyserConnect.jar"] \ No newline at end of file diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000..7f84783 --- /dev/null +++ b/docker/README.md @@ -0,0 +1,10 @@ +# GeyserConnect using Docker +This contains the docker image and a basic way of running GeyserConnect + +## Setup +1. Download GeyserConnect to a subfolder called `data` +2. Build the docker file using `docker build -t geyser-connect .` +3. Start geyser using this: +``` +docker run --name "geyser-c" -d --restart always -p 19132:19132/udp -p 19133:19133/udp -v $(pwd)/data:/gsc geyser-connect +``` \ No newline at end of file