i have a 2 domain hosted on different server.
site1.ir on server A - ip 126.96.36.199
site2.net on server B - hosted on digitalocean droplet
any domain has a cdn subdomain [ cdn.site1.ir , cdn.site2.net]
how do i this cdn.site1.ir forward/redirect to 1 cdn.site2.net?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
To do the same please follow the steps.
Sub domain is part of the domain, it’s like subletting a room of an apartment.
A records has to be setup on the dns.
For example :
mydomain.com has IP 188.8.131.52.0 and hosted with some other company.
Now to get the sub domain
of which the site is actually on another server then to create a sub domain
Login to your domain manager
And go to dns manager and add an A record in domain manager like this
anothersite.mydomain.com and point the IP to the other server 127.0.0.1
And that’s it.
Wait for the DNS propogation usually happens instantly give it a time to reflect and point the sub domain name anothersite.mydomain.com and you are all set to go now as your sub domain points to Digital Ocean.
What is the impact of having a CNAME of * with this.
I’ve configured irc.mydomain.org to point to my droplet but no DNS queries will return that box. I set this up over 2 days ago.