mirror of
https://github.com/moby/moby.git
synced 2026-08-08 09:01:44 +00:00
Replace regex matching/replacement and re-reading of generated files with a simple parser, and struct to remember and manipulate the file content. Annotate the generated file with a header comment saying the file is generated, but can be modified, and a trailing comment describing how the file was generated and listing external nameservers. Always start with the host's resolv.conf file, whether generating config for host networking, or with/without an internal resolver - rather than editing a file previously generated for a different use-case. Resolves an issue where rewrites of the generated file resulted in default IPv6 nameservers being unnecessarily added to the config. Signed-off-by: Rob Murray <rob.murray@docker.com>
7 lines
102 B
Plaintext
7 lines
102 B
Plaintext
# This is a comment.
|
|
|
|
nameserver 127.0.0.53
|
|
|
|
# Based on host file: '/etc/resolv.conf'
|
|
# Overrides: []
|