Skip to content

Commit dc1ccba

Browse files
Merge pull request #26813 from fiesh/improve-documentation
Improve dns documentation
2 parents 07bb670 + 249fa21 commit dc1ccba

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

docs/source/locale/ja/LC_MESSAGES/markdown.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,7 +2661,7 @@ msgstr ""
26612661
msgid ""
26622662
"The special value **none** can be specified to disable creation of "
26632663
"_/etc/resolv.conf_ in the container by Podman. The _/etc/resolv.conf_ "
2664-
"file in the image is used without changes."
2664+
"file in the image is then used without changes."
26652665
msgstr ""
26662666

26672667
#: ../../source/markdown/podman-build.1.md:454
@@ -25046,7 +25046,7 @@ msgid ""
2504625046
"Several files will be automatically created within the container. These "
2504725047
"include _/etc/hosts_, _/etc/hostname_, and _/etc/resolv.conf_ to manage "
2504825048
"networking. These will be based on the host's version of the files, "
25049-
"though they can be customized with options (for example, **--dns** will "
25049+
"though they can be customized with options (for example, **--dns** may "
2505025050
"override the host's DNS servers in the created _resolv.conf_). "
2505125051
"Additionally, a container environment file is created in each container "
2505225052
"to indicate to programs they are running in a container. This file is "

docs/source/markdown/options/dns.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ host DNS configuration is invalid for the container (e.g., **127.0.0.1**). When
1212
is the case the **--dns** flag is necessary for every run.
1313

1414
The special value **none** can be specified to disable creation of _/etc/resolv.conf_ in the container by Podman.
15-
The _/etc/resolv.conf_ file in the image is used without changes.
15+
The _/etc/resolv.conf_ file in the image is then used without changes.
16+
17+
Note that **ipaddr** may be added directly to the container's _/etc/resolv.conf_.
18+
This is not guaranteed though. For example, passing a custom network whose *dns_enabled* is set to *true* to **--network** will result in _/etc/resolv.conf_ only referring to the aardvark-dns server. aardvark-dns then forwards to the supplied **ipaddr** for all non-container name queries.

docs/source/markdown/podman-run.1.md.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pull** _image_, before it starts the container from that image.
2525
Several files will be automatically created within the container. These include
2626
_/etc/hosts_, _/etc/hostname_, and _/etc/resolv.conf_ to manage networking.
2727
These will be based on the host's version of the files, though they can be
28-
customized with options (for example, **--dns** will override the host's DNS
28+
customized with options (for example, **--dns** may override the host's DNS
2929
servers in the created _resolv.conf_). Additionally, a container environment
3030
file is created in each container to indicate to programs they are running in a
3131
container. This file is located at _/run/.containerenv_ (or

0 commit comments

Comments
 (0)