Skip to content

test.libredns.gr should return the floating IP & use of HTTPPathRule instead of regex

ebal requested to merge test_static into master
  1. This lua function should return the static ip (floating) of the service and not the local IPv4 floating IP of the box.

  2. Using HTTPPathRule to match DoH path

https://dnsdist.org/rules-actions.html?highlight=httppathrule#HTTPPathRule

instead of using a regular expression, for every DoH request.

tested and worked:

$ doggo @https://doh.libredns.gr/ads analytics.google.com

NAME                    TYPE    CLASS   TTL     ADDRESS NAMESERVER                  
analytics.google.com.   A       IN      36701s  0.0.0.0 https://doh.libredns.gr/ads
Edited by ebal

Merge request reports