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

Switch :latest to glibc to address DNS lookup problems #48

Open
ustaerk opened this issue Jan 6, 2022 · 1 comment
Open

Switch :latest to glibc to address DNS lookup problems #48

ustaerk opened this issue Jan 6, 2022 · 1 comment

Comments

@ustaerk
Copy link

ustaerk commented Jan 6, 2022

Hi there,

#18 still is an issue as DNS lookup still seems to be broken in the uclib version of upstream (see below). As the Prometheus images are based on prom/busybox:latest they are based on the broken uclib version of upstream as well, causing issues with service discovery in docker compose setups. Is there any chance you could switch to the glibc version for :latest instead of uclib?

docker-compose.yml:

version: "3.8"
services:
  one:
    image: quay.io/prometheus/busybox:latest
    networks:
      - test-net
    entrypoint: sh
    command:
      - -c
      - while sleep 2; do nslookup two; echo XXXXXXXXXXXXX; done
  two:
    image: quay.io/prometheus/busybox:glibc
    networks:
      - test-net
    entrypoint: sh
    command:
      - -c
      - while sleep 2; do nslookup one; echo XXXXXXXXXXXXX; done
networks:
  test-net:

Sample output:

test-one-1  | Server:		127.0.0.11
test-one-1  | Address:	127.0.0.11:53
test-one-1  | 
test-one-1  | Non-authoritative answer:
test-one-1  | 
test-one-1  | *** Can't find two: No answer
test-one-1  | 
test-one-1  | XXXXXXXXXXXXX
test-two-1  | Server:		127.0.0.11
test-two-1  | Address:	127.0.0.11:53
test-two-1  | 
test-two-1  | Non-authoritative answer:
test-two-1  | Name:	one
test-two-1  | Address: 172.24.0.2
test-two-1  | 
test-two-1  | Non-authoritative answer:
test-two-1  | 
test-two-1  | XXXXXXXXXXXXX
@FeeeeK
Copy link

FeeeeK commented Oct 1, 2024

Any updates?

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