Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change response after one plugin fails #6673

Open
mm3906078 opened this issue May 13, 2024 · 0 comments
Open

change response after one plugin fails #6673

mm3906078 opened this issue May 13, 2024 · 0 comments
Labels

Comments

@mm3906078
Copy link

Hi guys, I have an issue, if one plugin doesn't match the input I want to change the answer from SERVFAIL to REFUSED.

Corefile:

in-addr.arpa.:53 {
    log
    errors
    mysql {
        dsn {{ mysql_user }}:{{ mysql_password }}@tcp(mysql:3306)/{{ mysql_database }}
    }
}

if the IP not in the MySQL server I got this:

dig -x 1.1.1.1
...
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 23459
...

but I want to get a response like this:

dig -x 1.1.1.1
...
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 23459
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant