DNS question

Red Squirrel

No Lifer
May 24, 2003
70,168
13,573
126
www.anyf.ca
Say I got two records, one for domain1.com and one for domain2.com

Say I add an entry for sub.domain1.com pointing to 1.2.3.4

In the domain2.com record I want something.domain2.com to also point to 1.2.3.4. Rather then make it an A record, is there a way to point it to sub.domain1.com? That way if 1.2.3.4 changes I'll only have to change it in once place instead of two.
 

Red Squirrel

No Lifer
May 24, 2003
70,168
13,573
126
www.anyf.ca
Yeah tried that, does not seem to work. It seems valid as I don't get errors though.

I was doing it like this:

something.domain2.com IN CNAME sub.domain1.com

 

LuckyTaxi

Diamond Member
Dec 24, 2000
6,044
23
81
what happens when you ping something.domain2.com? it should resolve to sub.domain1.com
 

Red Squirrel

No Lifer
May 24, 2003
70,168
13,573
126
www.anyf.ca
was not working but got it working now, suppose to add a period at the end. So it should look like this:

something.domain2.com IN CNAME sub.domain1.com.

This works.