23 lines
830 B
Markdown
23 lines
830 B
Markdown
# Podman
|
|
|
|
## Plugins
|
|
|
|
### dnsname
|
|
|
|
To re-create the DNS functionality of Docker the Podman community wrote the [dnsname plugin](https://github.com/containers/dnsname). It uses DNSMasq to enable DNS resolution inside the containers. To enable it, edit `/etc/cni/net.d/87-podman-bridge.conflist` and add the following config in the `plugins` section:
|
|
```json
|
|
{
|
|
"type": "dnsname",
|
|
"domainName": "podman.internal"
|
|
}
|
|
```
|
|
The `domainName` setting is added after every container name, e.g. `example.podman.internal` for a container called `example`.
|
|
|
|
You can find a pre-compiled version of the plugin [here](./dnsname).
|
|
|
|
#### Links
|
|
|
|
* https://podman.io/getting-started/network#using-dns-in-container-networks
|
|
* https://github.com/containers/dnsname/blob/main/README\_PODMAN.md
|
|
* https://github.com/containers/dnsname
|