containerd / containerd/nerdctl
Proposal: Change the DNS impl for the nerdctl network
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
### What is the problem you're trying to solve
For now, the nerdctl uses the `/etc/hosts` file to record the DNS for the different containers.
But in some circumstances, we need to maintain the different hosts file for different containers (add a record when a container create successfully, delete a record when a container delete successfully)
If the file is not right, there should be some DNS issues for the user, such as #1149
So maybe we need to use a better way to record the DNS.
### Describe the solution you'd like
Maybe we can use [dnsname](https://github.com/containers/dnsname) as a reference.
The [dnsname](https://github.com/containers/dnsname) makes a CNI plugin to record the DNS item. It allocates a dnsmasq process for each network. I think it's a good example for us.
cc @AkihiroSuda @junnplus @fahedouch
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.