P
P
Pavel2019-08-10 11:56:57
Domain Name System
Pavel, 2019-08-10 11:56:57

Make DNS records so that the domain directs both to the site and to the minecraft game server?

Hello dear community
There is a game server on the same ip . There is a donation store on another ip .
There are two DNS records that allow you to connect to the game server not by ip, but by the domain.ru domain

Type: А
Name: domain.ru
Value: ip1

Type: SRV
Name: 
  Service: _minecraft
  Protocol: TCP
  Name: domain.ru
Value: 
  Priority: 0
  Weight: 5
  Port: 25640
  Target: domain.ru

There is a third DNS record that allows you to go to the game store at donate.site.ru
Type: А
Name: donate
Value: ip2

Question. Is it possible to use DNS records to make it so that without using a 3rd level domain (some.domain.ru) it would be possible to access the site through a browser, and the game client would use the same domain to connect to the game server on a different ip?
5d4e88db34432573394346.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vreitech, 2019-08-10
@fzfx

if you teach the game client to look for IP not in A-records, but in SRV-records, then you can.
if you teach the server on which you have a site to redirect the ports to which the game connects to the IP address of the game server, then you can.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question