DNS Records (Cname and A)

BHForum
BHForum used Ask the Experts™
on
I am helping to run a minecraft server. All minecraft ports go to a specific IP address. All others mail, www, etc should go to another IP address that hosts the website. I want to direct all web traffic to the forums site instead of the minecraft server itself.

Example:

Minecraft server
111.111.111.111
Handling ports 25565, 1, and 1337 for servername.com

Web Server
222.222.222.222
Handling web services for servername.com

Right now, requests going to servername.com go to 111.111.111.111. I would like http traffic bound for servername.com and forums.servername.com to hit 222.222.222.222

I believe this should be done using CNAME records. What is the best way to handle these pointers to redirect traffic correctly?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
A record is when you want to resolve Name to IP and CNAME are for having multiple names for a single IP:

EX:

server.domain.com = 111.111.111.111 = A
server-b.same domain.com = 111.111.111.111  = CNAME

Also as you mentioned servername.com is not possible it should be servername.domain.com as A and forums.domain.com as CNAME both to 222.222.222.222
Kash2nd Line Engineer

Commented:
you need to create a A record which points to 222.222.222.222 and a CName record which is forums.domain.com.

Also, if the traffic is coming to the server which then on your router you need to redirect traffic to server ip with a port specified on it.
DNS records simply resolve to IP's they do not do anything about ports so you can have an A-record for forums.servername.com  pointing to 222.222.222.222, but servername.com can only point to one address.  So you can't have port 80 traffic going to one ip and port 1337 going to another using servername.com, you need a unique name.  Alternativly if you have them behind a router it can redirect the ports for a single IP.
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

You can use the http redirect feture in IIS ( if you use IIS ) to redirect traffic to another server, it will redirect the url ( so ports are included(.

Author

Commented:
Hmmm...I'd rather not install IIS on that server if not necessary. I have to look into this further. The web site has a lot of functionality, I'm wondering if I need to point everything to the website, and then redirect anything that isn't port 80 or port 8080 to the other server. I have to do some investigation.

Author

Commented:
I believe this explains the situation clearly. We may need to prefix the domain to run it out to the proper address.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial