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

Use libunbound to manage nametable #45

Open
brendonj opened this issue Sep 18, 2020 · 0 comments
Open

Use libunbound to manage nametable #45

brendonj opened this issue Sep 18, 2020 · 0 comments

Comments

@brendonj
Copy link
Contributor

It seems unnecessary to keep a separate list of names to addresses when libunbound can already do that using ub_ctx_hosts(), especially when the current implementation ignores /etc/hosts and uses a similar but incompatible format. Less code to maintain and more consistency with the host environment are good things.

Replace the nametable with libunbound. Load /etc/hosts and any nametable files from the usual locations.

Downsides:

  • Can't be reloaded or cleared once the context has been used to perform name resolution. Was that ever used?
  • New format isn't backwards incompatible. Will need to update ansible templates and maintain the deprecated nametable format for some time.
brendonj added a commit that referenced this issue Sep 30, 2020
Old style nametable will continue to work for now, though will
generate deprecation warnings when used.
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