Minikube Resolv.conf file '/etc/resolv.conf' contains search line consisting of more than 3 domains!

Cluster information:

Kubernetes version: Major:“1”, Minor:“20”, GitVersion:“v1.20.0”
Cloud being used: (put bare-metal if not on a public cloud)
Installation method: minikube
Host OS: Ubuntu 20.04

Get warning

Resolv.conf file ‘/etc/resolv.conf’ contains search line consisting of more than 3 domains!

Search Line limits were exceeded, some search paths have been omitted, the applied search line is: lens-metrics.svc.cluster.local svc.cluster.local cluster.local example.com prod.example.com client.example.com

Kubernetes will try to merge the host’s /etc/resolv.conf with the things we want in there. Linux has a limit of 6 search domains. Your host resolv.conf seems to have more than 3. Is this a problem or just a log-line you don’t like?

Thanks for your explanation! And I want to remove it and how can I make it less than 3?