Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorials:redirect-subdomains-to-different-ports-via-dns [2024/02/09 18:00] Zyzonixtutorials:redirect-subdomains-to-different-ports-via-dns [2024/02/10 11:07] (current) Zyzonix
Line 1: Line 1:
-===== Redirecting Subdomain to specific Post via DNS =====+===== Redirecting Subdomain to specific Port via DNS =====
  
 **Use case: Hosting multiple minecraft servers on one Server with the same IP.**  **Use case: Hosting multiple minecraft servers on one Server with the same IP.** 
Line 9: Line 9:
  
 For example this can look like this: For example this can look like this:
-<code bash>_minecraft._tcp.sub1 86400 IN SRV 0 5 5060 sub1.example.com</code>+<code bash>_minecraft._tcp.sub186400 IN SRV 0 5 5060 sub1.example.com</code> 
 + 
 +<callout type="info" icon="true">The service for which you are trying to set up this type of DNS records must support those! (for example Minecraft does)</callout> 
 + 
 +Some other examples from stackoverflow: 
 +<code bash> 
 +_minecraft._tcp.arboristal.com. 86400 IN SRV 10 40 25565 mc.arboristal.com. 
 +_minecraft._tcp.arboristal.com. 86400 IN SRV 10 30 25566 tekkit.arboristal.com. 
 +_minecraft._tcp.arboristal.com. 86400 IN SRV 10 30 25567 pvp.arboristal.com. 
 +</code>
  
 //Sourced partially from [[https://stackoverflow.com/questions/19015138/how-to-redirect-dns-to-different-ports|stackoverflow.com - Redirect DNS to different ports]]// //Sourced partially from [[https://stackoverflow.com/questions/19015138/how-to-redirect-dns-to-different-ports|stackoverflow.com - Redirect DNS to different ports]]//
  • tutorials/redirect-subdomains-to-different-ports-via-dns.txt
  • Last modified: 2024/02/10 11:07
  • by Zyzonix