[Bug]: internal DNS does not work (clean install)
- Dominant language
- Swift
- Stars
- 49.9k
- Forks
- 1.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 22
Description
### I have done the following
- [x] I have searched the existing issues
- [x] If possible, I've reproduced the issue using the 'main' branch of this project
### Steps to reproduce
Last week I had a setup where internal DNS worked pretty well. I wiped my device and did a clean reinstallation of container 0.6.0 (and also tested a debug build on the latest github code)
I run :
```
container run -d --rm --name web nginx
container run -it --rm alpine sh
/ # ping web
ping: bad address 'web'
/ # ping -4 web
ping: bad address 'web'
/ # nslookup web
Server: 192.168.2.1
Address: 192.168.2.1:53
** server can't find web: NXDOMAIN
** server can't find web: NXDOMAIN
/ # nslookup google.com
Server: 192.168.2.1
Address: 192.168.2.1:53
Non-authoritative answer:
Name: google.com
Address: 142.250.64.174
Non-authoritative answer:
Name: google.com
Address: 2607:f8b0:4008:815::200e
```
### Current behavior
container name resolution does not work at all
### Expected behavior
container names should resolve correctly
### Environment
```markdown
- OS: macOS 26.0.1
- Xcode: latest
- Container: Container CLI 0.6.0 (and latest from `main`)
```
Maybe I'm doing something wrong, but I expect this to work actually because it did. Please let me know if you need more information from my system
### Relevant log output
```shell
N/A
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.