Use automatic IPv4 configuration but ignore DHCP-provided DNS and use only explicitly configured DNS.
Which property should be set?
ipv4.ignore-auto-dns yes ignores automatically supplied DNS and search domains.
Detailed explanation
ipv4.never-default yesIncorrect. never-default controls default routes.
Incorrect. never-default controls default routes.
ipv4.may-fail noIncorrect. may-fail controls connection failure behavior.
Incorrect. may-fail controls connection failure behavior.
ipv4.ignore-auto-routes yesIncorrect. ignore-auto-routes affects routes, not DNS.
Incorrect. ignore-auto-routes affects routes, not DNS.
ipv4.ignore-auto-dns yesCorrect. ignore-auto-dns suppresses DHCP DNS.
Correct. ignore-auto-dns suppresses DHCP DNS.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'ipv4.ignore-auto-dns=yes'Expected result
ipv4.ignore-auto-dns=yesKey points
- Ignore auto DNS
- Separate from routes
- Configure explicit DNS
Notes
- Environment: property名の表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.