Mobile app version of vmapp.org
Login or Join
Yeniel560

: Forward a 'non-existant' subdomain to a 'physical' subdomain How can I forward a 'non-existant' subdomain to a 'physical' subdomain? I.e.: api.website.com -> api.company.com Where the first is

@Yeniel560

Posted in: #Dns #Subdomain

How can I forward a 'non-existant' subdomain to a 'physical' subdomain?

I.e.: api.website.com -> api.company.com

Where the first is just a CNAME pointer and the last is a real subdomain with a root.

At website.com I have:

api CNAME api.company.com.


At company.com I have:

api.website.com CNAME api.company.com (also tried this with just API)
api.company.com A 1.2.3.4

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

It appears that you want to create a subdomain to a root IP address, and then forward a subdomain from a different domain to this subdomain.

First you would create an A record for the api.company.com subdomain as demonstrated here under "Example 1" (ignoring the FTP part; also note that www is considered a subdomain as well, just like api).

So in the DNS tables for company.com you'd create an A record for:

api.company.com A 1.2.3.4


This establishes an alias record for host api.company.com at IP address 1.2.3.4

Next you'd create a CNAME to this external host as demonstrated here under "Example 3". So in the DNS tables for website.com you'd create a CNAME record for:

api CNAME api.company.com.


This points api.website.com -> api.company.com

Then you'd need to wait 24-48 hours for these DNS changes to propagate to DNS servers throughout the Internet in order for these subdomains to resolve properly, so don't make any other changes during that time.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme