Forum archive
Working with sub-domains, CNAMES and A records
I'd like some help please in learning how to create DNS records using the WordPress appliance on Amazon. Here's what I'm trying to do:
We have a live server on the internet that has a small number of sites running WordPress multisite.
We need to rebuild this WordPress multisite installation, and I'm hoping to use Turnkey WordPress on Amazon as a place to build a clone of the real system which can then be migrated out to the live environment.
Let's say my parent site is parent.com and the sub-sites are subsiteA.com and subsiteB.com.
I have to use the actual domain names in both environments. What I had planned to do was to edit the hosts file on a PC so that visiting parent.com, subsiteA.com and subsiteB.com go the the IP address (elastic) of my Turnkey Cloud Appliance.
For that to work I need to be able to create A records and CNAME records and sub-domains on the server appliance itself so that traffic is routed appropriately. I don't want these records to be created in any sort of public DNS system because there's still a real live site out there that needs to carry on working.
I'm used to using Advanced DNS Editor in Cpanel on other servers. Where do I find/install/activate/access something like that on Turnkey WordPress EC2?
Thanks in advance
Ian
Adding the IP to your hosts file should do the job fine. I'm not sure why you'd also need to create DNS records? When you try to connect to a url, the first thing that is checked is the hosts file. If a entry exists there then DNS is never querried. It's only when no hosts record exists that your PC will ask DNS for an IP...
Regardless though, if you want to install a local DNS server on your appliance then you could do that too. Then just make your server your primary DNS (on your local computer.
To install DNS:
Then you can configure it through Webmin.
Where this whole idea will possibly fall down though is that unless you have an elastic IP associated with your appliance, the pubic IP may change and you will lose domain based contact with your server (whether you go the hosts or DNS route). The only other way around that is to use alternative domain names (so they don't interfere with your real site). You could use HubDNS for that and one of the free tklapp.com domain names...