How to configure k3s coredns to use a customized dns server?

Hi,

I have a local dns cache server dns-server-ip that runs on port 5353. I created a file /usr/etc/resolv.k3s.conf with the following content.

nameserver dns-server-ip:5353

Then update the /etc/systemd/system/k3s.service file and added --resolv-conf=/usr/etc/resolv.k3s.conf

Then I killed all k3s services and restarted them. But in the coredns port, I got dns-server-ip:5353 no such host.

I can use dig to query my local DNS server.

Any idea why the coredns pod cannot connect to my DNS server?

Thanks.

What’s that link to an apk file for?