/k8s-gethostbyname-cache

DNS cache inside every k8s pod

Primary LanguageC

gethostbyname Caching in Kubernetes

This repo outlines several approaches to implement caching for the gethostbyname function within Kubernetes environments.

Approaches

  • Description: Wrap the gethostbyname function with caching behavior by utilizing a library that is preloaded inside a container via LD_PRELOAD.
  • Description: Implement a global DNS cache. Inside the container, a library preloaded with LD_PRELOAD facilitates communication with the global DNS cache through a Unix socket.