I can't set up a redirect from domain to IP.
I have a server that runs on my home PC, static IP address. I purchased a domain and want to do a redirect from the domain to the IP. Did everything according to the guides but it doesn't work.
A Recording is configured.
SRV Recording is configured.
But it doesn't work, when connecting to the domain writes "Unknown Host".
42 Replies
Thanks for asking your question!
Once you have finished, please close your thread.
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close
!close
!solved
Requested by zekoyka#0
Have you opened the port?
Yes, the server works and the players play.
hmmm
can you show the record?
it should be looking like this (the SRV)



A Record and SRV record.
service is needed to be
_minecraft
and try to put the A as "port.<domain>.onlineThe site says that the _ symbol is automatically substituted.
oh ok
Why should I rename it to port?
and in the port section of the SRV put the server port not minecraft port
it can make some problem if you have play.example.com:2212
and
play.example.com:25565
What is the server port? I have the server running on a separate PC at home.
go to
server.properties
and search for a filed called server-port
should be looking like this:Do you mean make the domain as port.domain.online? Instead of play.domain.online?
And put in the port address in the SRV Records server IP, not minecraft?

ahhh
lets say i have a server in here:
at ip 1.1.1.1 and port 34
so I'm doing "A" record
and then this:



do just 'A' record,
you have the default mc port
I have the usual minecraft ports listed here. Not 2312
ah
okey
That is, A record to change to?

Remove the SRV, leave just the 'A' record, to your pc ip
I've already tried it, it still doesn't work.
When I left just one record of A.
Then I don't really know how to help,
sorry
I already have a redirect to A records to my IP, but it does not work.
Thanks anyway for the help and advice.
Define "does not work"
What I'd recommend is to transfer your dns servers to cloudflare and use theirs.
https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/
Just the name servers
Change your nameservers (Full setup) · Cloudflare DNS docs
If you want to use Cloudflare as your primary DNS provider and manage your DNS records on Cloudflare, your domain should be using a full setup.
Agreeing with him, cloudflare more convenient
With one A Record, that is redirect from the sub-domain play.domain.online to my IP - does not work. I try to connect by domain to the server inside minecraft, but it doesn't work and the error "Unknown host" comes out
Did you check to see if your dns records propagated to your computer?
Open cmd
ping blah.domain.tld
, see if your IP shows up there.Yes, it pings, I get a reply with <1ms.
Wait, you're trying to use your public IP internally?
Well, I have a computer at home, my IP is static - from my ISP.
Often times your router won't let you do that. Hairpin NAT isn't enabled by default on many residental routers.
https://mcsrvstat.us/
Check to see if it is working using this site.
I don't have NAT. I have a dedicated IP and players are already playing on my server.
Everyone uses NAT.
Figuratively speaking.
No, literally speaking
There are multiple different types of NAT.
You're probably thinking I mean CGNat, which I don't.
Hairpin NAT is when a router is able to send traffic from internal to internal using the routers external IP.
If I enter my IP on the site that is the IP of my server is real - it does not work, if the domain address - it works.
Information about my server is displayed.
Oh, it's working.
Thank you guys for your help.
@Señor Leche @Arnon001
!