omcreations

Member
Mar 20, 2013
5
0
1
cPanel Access Level
Root Administrator
I have a dedicated server with cPanel running on it. Currently, there are 4 domains with emails. On one of the domains, the HTTP requests will go to a site over on Amazon Web Services, but all emails for that single domain will remain on the server.

I was provided with the CNAME for Amazon, but when I try to create it in cPanel, I receive an error: "Unable to parse zone: Contains a malformed wildcard name: C*". I've altered some of the URL, for client security, but what was provided by Amazon is: C*.mydomain.com:gssb1-0000000.us-east-1.elb.amazonaws.com:86400

Any thoughts on how to add this CNAME to cPanel DNS settings?
 

LostNerd

Well-Known Member
Mar 12, 2014
258
12
18
Hastings, East Sussex, UK
cPanel Access Level
Root Administrator
Twitter
Unfortunately, it's not possible to setup CNAME entries to point to ports. They can only point from hostname to hostname. Personally, I can't think of a logical route around it. Perhaps ask Amazon to provide you with a subdomain?

EDIT: I was wrong. rhenderson's comment below should help.
 
Last edited:

rhenderson

Well-Known Member
Apr 21, 2005
785
2
168
Oklahoma
cPanel Access Level
Root Administrator
I have a dedicated server with cPanel running on it. Currently, there are 4 domains with emails. On one of the domains, the HTTP requests will go to a site over on Amazon Web Services, but all emails for that single domain will remain on the server.

I was provided with the CNAME for Amazon, but when I try to create it in cPanel, I receive an error: "Unable to parse zone: Contains a malformed wildcard name: C*". I've altered some of the URL, for client security, but what was provided by Amazon is: C*.mydomain.com:gssb1-0000000.us-east-1.elb.amazonaws.com:86400

Any thoughts on how to add this CNAME to cPanel DNS settings?
CNAME wildcards are "legal" as outlined in RFC 4592 (see http://www.ietf.org/rfc/rfc4592.txt ) but it appears cPanel doesn't like them. If you need it you might have to buy a DNS service that will allow it. If someone from cPanel could chime in and verify that perhaps you can do this....

C"*".mydomain.com:gssb1-0000000.us-east-1.elb.amazonaws.com:86400
Basically escaping the * with ""

Unfortunately, it's not possible to setup CNAME entries to point to ports. They can only point from hostname to hostname. Personally, I can't think of a logical route around it. Perhaps ask Amazon to provide you with a subdomain?
I figured the 86400 was TTL, but your right if it is included in the string instead of the TTL that is not going to work.

I think it is just the way it was written, it does look like a port. but I think it is TTL
 
Last edited:

omcreations

Member
Mar 20, 2013
5
0
1
cPanel Access Level
Root Administrator
Escaping with "" didn't work. Still had the malformed wildcard. It looks like cPanel just doesn't support strings like that.

I ended up going over to my domain registrar and added a CNAME on their records, which appear to be working perfect at this time.
 

LostNerd

Well-Known Member
Mar 12, 2014
258
12
18
Hastings, East Sussex, UK
cPanel Access Level
Root Administrator
Twitter
I'm glad you've got it sorted one way or another however, we're you using cPanel's "Simple DNS Zone Editor" or did you use the DNS Zone Editor in WHM? You may have more luck via the latter.