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

DNS resolution through sh doesn't work #969

Closed
eyalb181 opened this issue Jan 19, 2023 · 2 comments
Closed

DNS resolution through sh doesn't work #969

eyalb181 opened this issue Jan 19, 2023 · 2 comments
Labels
bug Something isn't working user

Comments

@eyalb181
Copy link
Member

Bug Description

User tried the following command:
mirrord exec --target <target name> --target-namespace <target namespace> sh

Then in the shell tried:
dig +short <remote domain name>

But resolution failed.

They also tried it with a Python script instead of dig, but got the same result.

Steps to Reproduce

See above.

Backtrace

No response

Relevant Logs

No response

Your operating system and version

macOS 13.1

Local process

sh + dig

Local process version

dig 9.10.6

Additional Info

No response

@eyalb181
Copy link
Member Author

Retest after #1776

@infiniteregrets
Copy link
Contributor

it works:

mirrord exec -t pod/py-serv-deployment-5fffb9767c-grhzd -- sh
⠠ mirrord exec
    ✓ Running on latest (3.58.0)!
    ✓ ready to launch process
      ✓ layer extracted
      ✓ no operator detected
      ✓ node is allocatable
      ✓ agent pod created
      ✓ pod is ready                                                                                                                                sh-3.2$ dig +short www.google.com
142.251.41.36
sh-3.2$ dig +short google.com
142.251.33.174
sh-3.2$ dig facebook.com

; <<>> DiG 9.10.6 <<>> facebook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21886
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;facebook.com.			IN	A

;; ANSWER SECTION:
facebook.com.		30	IN	A	31.13.80.36

;; Query time: 29 msec
;; SERVER: 10.96.0.10#53(10.96.0.10)
;; WHEN: Thu Aug 17 15:03:07 EDT 2023
;; MSG SIZE  rcvd: 69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user
Projects
None yet
Development

No branches or pull requests

2 participants