Multiple Game Servers and SRV Records
I am running a minecraft server on the standard port 25565 but am also running a development server on 25564. I would like to run additional servers obviously on additional ports. I've recently learned that minecraft supports SRV records as described here. The intention is that connecting players will not need to specify the various port numbers, just plug in the url and connect to the correct server.
The current pfsense configuration is as such:
Firewall: NAT: Port Forward
| If | Proto | Src. addr | Src. ports | Dest. addr | Dest. ports | NAT IP | NAT Ports | Description |
| WAN | TCP/UDP | * | * | WAN address | 25565 | x.x.x.x | 25565 | MineConomy RPG |
| WAN | TCP/UDP | aliasusers | * | WAN address | 25564 | x.x.x.x | 25564 | MineConomy DevServer |
| WAN | TCP/UDP | * | * | WAN address | 25566 | x.x.x.x | 25566 | MineConomy Vanilla |
The accompanying FW Rules are obviously in place and all works as expected, connecting clients specify the port and the traffic gets forwarded to the correct server.
My issue is that our webhost is also providing the DNS services and the cpanel doesn't offer an SRV type in the Advanced DNS Zone Editor. I have multiple A record entries for each of the different subdomains (play.mineconomy.org dev. vanilla. creative.) in the webhosts DNS editor all pointing to my network. I've added some dnsmasq configuration options in the Advanced section of Services: DNS Forwarder.
srv-host=_minecraft._tcp.play.mineconomy.org,192.168.2.254,25565,0,5 srv-host=_minecraft._tcp.vanilla.mineconomy.org,192.168.2.254,25564,0,5 srv-host=_minecraft._tcp.creative.mineconomy.org,192.168.2.254,25566,0,5 srv-host=_minecraft._tcp.dev.mineconomy.org,192.168.3.195,25565,0,5
I can not find a dnsmasq.conf file in any of the normal locations to verify that it's actually being written to.
All incoming traffic on port 25565 goes to the main server running on 25565. What do i need to do to complete this process? Do i need to remove the port forwards in NAT? Will the DNS forwarder take care of things with those SRV records as intended? Am i on the right track? Is this not even possible since the webhost doesn't offer SRV records on their end? So many questions lol. I'm sure this thread might apply to other forum categories, just move it there if it's more relevant.
Thanks in advance for your help :)
Did you ever get this resolved?
We have similar goals. Here is a link to my post
Your help will be greatly appreciated.