question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[lima] K3s split-DNS (again)

See original GitHub issue

I just gave 0.6.0 a shot and my split-DNS from the host is not working in the container (see https://github.com/rancher-sandbox/rancher-desktop/issues/702).

I’ve been using Lima 0.7.1 just fine and it worked well (after the https://github.com/lima-vm/lima/pull/281). It doesn’t when installed with RD. I did a full reset and manually deleted lima.yaml just to make sure.

I can confirm that the DNS resolution works well in the VM but not in the containers. CoreDNS is not able to resolve private addresses. I checked coredns config map and it seems fine (all-defaults). If I do dig +short @192.168.5.33 private-host (an IP from /etc/resolve.conf in the VM) in the container - it gives nothing, though it works in the VM itself.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:50 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
janduboiscommented, Oct 12, 2021

I originally tried PREROUTING and POSTROUTING rules, but couldn’t get them to work: https://github.com/lima-vm/lima/pull/281#issuecomment-931940795

But that was when I was still trying to redirect to 127.0.53.53. It doesn’t work because localhost traffic isn’t processing pre- and post-routing chains, which is why I switched to the output chain. But since we are now redirecting to an external address, this limitation no longer applies.

I am afraid it might break something […] - thoughts?

I need to think about this for a while; will get back to you later

0reactions
dee-kryvenkocommented, Oct 16, 2021

Ok I believe I’ve figured SRV out… adding now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Options and Configuration | K3s
kube-system coredns-8655855d6-rtbnb 1/1 Running 0 51s ... can only be added once and not changed after that again by running K3s commands.
Read more >
Running Containerd and k3s on MacOS - Akihiro Suda, NTT ...
Don't miss out! Join us at our upcoming hybrid event: KubeCon + CloudNativeCon North America 2022 from October 24-28 in Detroit (and online!)...
Read more >
[KubeCon EU 2022] Running containerd and k3s on macOS
Lima wraps QEMU in a simple CLI, with neat features for container users, such as filesystem sharing and automatic localhost port forwarding, as ......
Read more >
Minikube quickly sets up a local Kubernetes cluster on macOS ...
I've tried several of the kubes and k3s for my personal projects works well. ... for a while: https://github.com/lima-vm/lima/blob/master/examples/k8s.yam.
Read more >
Customizing DNS Service - Kubernetes
This page explains how to configure your DNS Pod(s) and customize the DNS resolution process in your cluster. Before you begin You need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found