Friday, January 28, 2011

DNS setting to redirect abc.example.com properly?

I have two dedicated servers running Apache on RHEL5/CentOS.

The first is setup to be a name server for the domain 'www.example.com'

I need to set it up so that http://abc.example.com points to the second server. What command should I use or what file should I edit?

I think I have to set the 'A' record, but where do I do this in a redhat linux system?

  • You say The first is setup to be a name server for the domain 'www.example.com'. I'm hoping you mean it's setup for the domain example.com, with a host (A) record called www. If not, you already have problems.

    Assuming the domain is example.com, you need a CNAME (alias) record for ABC, pointing at XYZ.example.com.

  • Do both servers have static IP's? If so, the abc should be an A record on the name server pointing to the IP address of the second server.

    From
  • I was mistaken in my assumptions. Neither of the servers had name servers. The domain name was registered at GoDaddy and we added the two IP addresses as 'A' DNS records.

    From matt_tm

0 comments:

Post a Comment