Can not change DNS


Joined
Nov 19, 2020
Messages
1
Reaction score
0
Hello,

I use a MacOs 10.15.7. I have a virtuabox VM, with a DNS service up (on LAN, 192.168.0.3). DNS service is up and responds from the Mac shell :
# dig @192.168.0.3 <DOMAIN>
[...]
;; ANSWER SECTION:
<DOMAIN>. 0 IN A 192.168.0.3


I added the VM DNS into "System Preferences" / "Network" (Wi-Fi network). I also added the DNS to /etc/resolv.conf (from Mac shell).
From the shell :
# ping <DOMAIN>
ping: cannot resolve <DOMAIN>: Unknown host


I flushed the cache (from Mac shell) :
# sudo killall -HUP mDNSResponder; sudo killall mDNSResponderHelper; sudo dscacheutil -flushcache

... without result.

But :

# networksetup -getdnsservers Wi-Fi

returns the VM DNS.

It doesn't work from a browser either (domain not found).
Any ideas ?
 
Last edited:
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top