blocky icon indicating copy to clipboard operation
blocky copied to clipboard

CustomDNS should support other query types (CNAME, TXT, ...)

Open 0xERR0R opened this issue 3 years ago • 4 comments

0xERR0R avatar Mar 21 '22 21:03 0xERR0R

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 04 '22 09:08 github-actions[bot]

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 03 '22 04:11 github-actions[bot]

I added cname support in https://github.com/0xERR0R/blocky/pull/996

SuperSandro2000 avatar Apr 16 '23 23:04 SuperSandro2000

While the CNAME PR appears to be DOA, you can emulate CNAMEs for internal IPs using yaml anchor tags like this:

customDNS:
  customTTL: 1h
  mapping:
    home-server.lan: &server 192.168.0.1
    app-1.lan: *server
    app-2.lan: *server

This of course has its downsides and doesn't solve for external domain names, but for my use-cases this works well enough.

If I have time in the coming weeks/months, I may look at picking up where @SuperSandro2000 left off and add @0xERR0R's suggestion for psuedo-funcitons in the config file to see if we can get that merged. I know I'd prefer my apps to be CNAMEs even if this is technically functional.

BenMcH avatar Jan 25 '24 01:01 BenMcH