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.

MacOS: Change the DNS Resolution

See original GitHub issue

Problem Description

In the environment that we are working in, it seems that for some reason, it is the DNS resolution doesn’t work out of the box with Rancher Desktop. Images can’t be pull

I have already fixed the issue on Windows. We have a procedure to connect to the Rancher Desktop WSL and update the resolv.conf (there is a few more steps to do that but that’s the basics). This works very well.

> wsl -d rancher-desktop
# cat /etc/resolv.conf
nameserver 1.1.1.1

Now the problem is with MacOS… I assume that Rancher Desktop also runs some kind of VM (Lima?). We need a way to change this on MacOS’s Rancher Desktop? Doing it at the MacOS system level doesn’t work.

Proposed Solution

I would suggest the following

Either: There should be a way to configure this for MacOS and this way should be documented (ideally can be documented for Windows as well)

Either: Rancher Desktop should be able to use the host name resolution (unsure what the problem is to be honest)

Additional Information

No response

Preflight Checklist

  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mackankowskicommented, Feb 24, 2022

I’ve also experienced a DNS resolution issue so I couldn’t pull any image or login to docker hub, but finally, I’ve worked out the solution, and maybe it will turn out useful:

# Docker network issues when using Rancher Desktop on Mac with Apple Silicon ARM-based processor (M1 chip) - readme.md

Best regards, Maciej

0reactions
davemaulcommented, May 17, 2022

Hi! The solution from @DidierHoarau doen’t work for me and my colleague. The VM seems not to be interesed in any override.yaml.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change your DNS and (maybe) take the internet back
How do I change DNS on Mac? · System Preferences · Network · Click Advanced. · Click the DNS tab · Click the...
Read more >
How to Change Your Mac's DNS Servers | Macinstruct
Changing Your Mac's DNS Servers · From the Apple menu, select System Preferences. The window shown below appears. · Click Network. The window ......
Read more >
Configure DNS Settings On Your Apple Mac Pro - Support.com's
2 macOS: Configure DNS · Choose Apple menu > System Preferences. · Click Network. · In the list at the left, select the...
Read more >
How to Change DNS Server Settings in Mac OS? - ServerGuy
Changing Your Mac's DNS Servers · 1. Go to the Apple menu and select “System Preferences”. · 2. Choose the “Network” control panel...
Read more >
How to Change Your DNS Server on Windows 10 and Mac
To change your DNS server on a Mac, go to System Preferences > Network. Then select a connection and click Advanced. Next, select...
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