Yet another CNAME setup question...

I'm trying to set up some CNAME records so I can set up two test vhosts on my machine.
)
Here's partial screen shot of my setup
!(http://kenrbnsn_general_files.s3.amazonaws.com/cname-setup.jpg

It looks right, as far as I can tell, but when I go to another Linux machine and do a host command for either CNAME names, I get

dig ksrmaps.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.5 <<>> ksrmaps.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 4002
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ksrmaps.com. IN A

;; AUTHORITY SECTION:
com. 899 IN SOA a.gtld-servers.net. nstld.verisign->grs.com. 1529543061 1800 900 604800 86400

;; Query time: 54 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Jun 20 21:04:42 2018
;; MSG SIZE rcvd: 102

I've been waiting longer than the TTL on the CNAME and A records.

Is there anything that I've missed?

Thanks in advance

2 Replies

All DNS records created in the DNS Manager are relative to the zone you create them in, so from your screenshot, you've created a CNAME record at ksr-test123.com.my-test.site that points to my-test.site:

$ host ksr-test123.com.my-test.site
ksr-test123.com.my-test.site is an alias for my-test.site.
my-test.site has address 45.33.70.69
my-test.site has IPv6 address 2600:3c03::f03c:91ff:fef1:9f7c
my-test.site mail is handled by 10 mail.my-test.site.

In order to create records for ksr-test123.com and ksrmaps.com, you'd need to create separate zones in the DNS Manager for them. Note that you can't have CNAME records at the root of a zone, because CNAME records can't coexist with any other record type (and there will be SOA and NS records at the root of the zone), so you'd need to use A and AAAA (and possibly MX, if you care about mail) records that match the records of the DNS name you want it to point to.

Thanks. Is this explained anyplace?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct