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

Example doesn't print anything #17

Open
rstupek opened this issue Jan 19, 2024 · 2 comments
Open

Example doesn't print anything #17

rstupek opened this issue Jan 19, 2024 · 2 comments

Comments

@rstupek
Copy link

rstupek commented Jan 19, 2024

Example plugin does not print anything using provided Corefile

.:1053 {
example
log
forward . 8.8.8.8
}

Sample output:
CoreDNS-1.11.1
linux/amd64, go1.20.12, 945db2fa-dirty
[INFO] 127.0.0.1:45207 - 6605 "A IN google.com. udp 39 false 4096" NOERROR qr,rd,ra 195 0.002194196s

Also a new plugin created using the instructions provided for creating plugins similarly does not print anything

I have tried moving the example plugin around in the corefile with no differences viewed.

@litobro
Copy link

litobro commented Apr 17, 2024

I'm experiencing the same thing. When I try to do a lookup I'm not seeing the output even if I add debug to my Corefile.

@litobro
Copy link

litobro commented Apr 18, 2024

I've successfully implemented a plugin with logging. Can you try increasing the position of your plugin inside of plugin.cfg? If you place it below cache:cache this should allow it to print properly. As the comment says, the order is important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants