CNAME Support? #412
Replies: 3 comments 5 replies
-
Had a similar problem a while back and figured that a conditional block without a mapping (rewrite only) is ignored somehow. |
Beta Was this translation helpful? Give feedback.
-
CustomDNS creates only A and AAAA entries -> you can only map a custom url (with all subdomains) to the particular IP address. Conditional mapping redirects some queries to the defined DNS resolver. I think in your use case you can try to define customDNS mapping either for each app url like: customDNS:
mapping:
app1.url.com: 10.1.0.10
app2.url.com: 10.1.0.10
app3.url.com: 10.1.0.10 or for the whole domain (in this case for all subdomains: *.url.com): customDNS:
mapping:
url.com: 10.1.0.10 |
Beta Was this translation helpful? Give feedback.
-
I created an issue to track it: #465 |
Beta Was this translation helpful? Give feedback.
-
Hey there, loving Blocky so far! I've got a quick question that I'm hoping is just due to me missing something simple: Does blocky support manual CNAMEs to internal hosts?
Use case: I host a webserver on
webserver.lan
. This web server hosts several sites externally to the public internet - let's sayapp1.web.url
,app2.web.url
,app3.web.url
. With my current PiHole setup, I use the underlyingdnsmasq
config options for CNAME mapping:Ask
Does blocky support manual CNAMEs to internal hosts?
What I've tried
First off, I tried just using the
customDNS.mapping
YAML configuration (doc ref) to try to addwebserver.lan
as the target for my FQDNS as so:This config throws an error on startup which makes sense:
FATAL wrong file structure: invalid IP address 'webserver.lan'
Next, I tried
conditional.rewrite
YAML configuration (doc ref) to remap my app*.url.com URLs towebserver.lan
as so:This config loads, but when I query
app1.url.com
, it tosses it upstream and fails (as I assume it rewrites it to webserver.lan and fails Cloudflare's resolver):Any guidance you could provide? Or is this not currently possible at this point? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions