Replies: 6 comments 6 replies
-
You should use
The last ressource record is wrong, it should be an |
Beta Was this translation helpful? Give feedback.
-
Have you enabled https://doc.powerdns.com/authoritative/settings.html#expand-alias and https://doc.powerdns.com/authoritative/settings.html#setting-resolver? And fix the CNAME as written before. |
Beta Was this translation helpful? Give feedback.
-
Is there a resolver (unbound, bind ...) listening on localhost port 53? Do you see the DNS query from PowerDNS to that local resolver? ( |
Beta Was this translation helpful? Give feedback.
-
Ar far as I see it works now. The problem was the missing A entry. If you query for "A pinktrianglepress.ca", then the ALIAS will trigger an A lookup for www.pinktrianglepress.com. And this A for www.pinktrianglepress.com was missing in first place - which you have fixed. |
Beta Was this translation helpful? Give feedback.
-
I think it should work also when the ALIAS points to a CNAME. CLient -> PowerDNS -> Resolver -> resolving ..... PowerDNS ask the resolver for the target. IT should be irrelevant if the resolver has to resolve a CNAME or finds directly an A record. So first check your local resolver if CNAME resolving works on your local resolver, with "dig @127.0.0.1 ....." And of course try if using 8.8.8.8 or 1.1.1.1 as resolver changes the result. |
Beta Was this translation helpful? Give feedback.
-
For posterity, the issue was that I needed to point |
Beta Was this translation helpful? Give feedback.
-
For some reason, ALIAS records seem not to be working on my PowerDNS server.
I have the following setup:
$pdnsutil list-zone pinktriangle.ca | grep -e "CNAME|ALIAS"
pinktriangle.ca 300 IN ALIAS www.pinktrianglepress.com
www.pinktriangle.ca 300 IN CNAME www.pinktrianglepress.com.
Yet I run dig:
[Wed Nov 08 15:01:34 DNS1]
$dig +short www.pinktriangle.ca
www.pinktrianglepress.com.
158.106.84.48.
So my CNAME record works as expected. But then I query for the ALIAS record:
[Wed Nov 08 15:01:49 DNS1]
$dig +short pinktriangle.ca.
[Wed Nov 08 15:01:58 DNS1]
$dig +short pinktriangle.ca. ANY
[Wed Nov 08 15:02:03 @DNS1]
$dig +short pinktriangle.ca. ALIAS
What am I missing here?
Thanks,
Brad
Beta Was this translation helpful? Give feedback.
All reactions