-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
When a group calls another group it would be great to have access to the arguments, e.g.
[groups.blocklist]
type = "response-blocklist-ip"
resolver = "myresolver"
blocklist-resolver = "blocklist-resolver"
blocklist = [ "1.2.3.4" ]
[groups.blocklist-resolver]
type = "static-responder"
edns0-ede = { code = 15, text = "IP $1 is in the blocklist" } # $1 = "1.2.3.4"
And I would also like to propose the idea of a new query
group which allows you to construct your own query (this also needs support for arguments). Could be useful for changing the query type or question, e.g.
[routers.router]
routes = [
{ resolver = "any-emulator", type = "ANY" },
{ resolver = "myresolver" }
]
[groups.any-emulator]
type = "query"
resolver = "myresolver"
query = [ "A $2", "AAAA $2" ] # $1 = "ANY", $2 = "example.com"
Metadata
Metadata
Assignees
Labels
No labels