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

Unable to get it working #14

Open
normangoh opened this issue Oct 29, 2019 · 0 comments
Open

Unable to get it working #14

normangoh opened this issue Oct 29, 2019 · 0 comments

Comments

@normangoh
Copy link

Hi guys,

I am trying to use this plugin to get EDNS0 information but to no avail. I suspect that I am using it wrongly and hence asking here for advises.

Corefile

.:1053 {
  metadata
  metadata_edns0
  log
  {my_custom_plugin}
}

My custom plugin

edns := metadataEdns0.New()
newCtx := edns.Metadata(ctx, state)
fmt.Println(metadata.Labels(newCtx)) <-- not returning any fields

May I know if there is anything that I am missing out?

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

1 participant