开发者

DNS works only after I ping it [closed]

开发者 https://www.devze.com 2023-03-21 22:19 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

Actual problem is that I open VPN (OpenVPN) connection to my office on my mac.

This connection changes开发者_如何学C my preference to a new DNS (in office). I cannot visit any page until I manually ping dns by IP. After that everything works like a charm (until VPN disconnected, of course).

I really do not understand this behavior, but I am sure I can solve this because my colleagues (with Macs too) have no problems with this. Please, give me any hint how this can be fixed.


Maybe you need to flush the local DNS cache on your Mac:

dscacheutil -flushcache

Or maybe your local router onsite needs to flush it's DNS cache, especially if your mac is set up so that the local router is the gateway.

Before connecting, check your IP, gateway, and DNS, then connect (but don't do the ping thing yet), repeat, and then ping, and finally check again.

If this isn't illuminating, log into the local router's admin interface and do similar steps to the above.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号