1. Add DNS to the host
1.1 CentOS
Edit the resolve.conf
file directly.
1.2 Ubuntu
Since resolve.conf
is automatically generated, you need to change resolved.conf
to make it work.
Then restart the resolve service.
|
|
Finally, you can also confirm that the configuration is in effect.
|
|
2. Restart Nodelocaldns
When launching an external request in the Pod, the resolution logic is nodelocaldns -> DNS configured by the node -> return IP.
|
|