Link to home
Start Free TrialLog in
Avatar of BHForum
BHForum

asked on

DNS Records (Cname and A)

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?
Avatar of Bawer
Bawer
Flag of Afghanistan image

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
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.
ASKER CERTIFIED SOLUTION
Avatar of tonyperth
tonyperth
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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(.
Avatar of BHForum
BHForum

ASKER

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.
Avatar of BHForum

ASKER

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