Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I clear DNS cache?

I run SMB on file-server.corp.example.com - from Finder, going to Go -> Connect to Server and entering this DNS name doesn't work, because it can't resolve it to an IP address.


Google says "dscacheutil -flushcache" should flush the cache - it doesn't, or perhaps it flushes one cache and there's yet another?


See below for my dilemma. Below repeated on both the local user's terminal and an elevated sudo su root session:


sh-3.2# dscacheutil -flushcache

sh-3.2# dscacheutil -flushcache

sh-3.2# ping file-server.corp.example.com

ping: cannot resolve file-server.corp.example.com: Unknown host

sh-3.2# nslookup file-server.corp.example.com

Server: 192.168.12.250

Address: 192.168.12.250#53


Name: file-server.corp.example.com

Address: 192.168.10.247


sh-3.2# ping file-server.corp.example.com

ping: cannot resolve file-server.corp.example.com: Unknown host

sh-3.2# dscacheutil -flushcache

sh-3.2# ping file-server.corp.example.com

ping: cannot resolve file-server.corp.example.com: Unknown host

sh-3.2# dscacheutil -flushcache

sh-3.2# nslookup file-server.corp.example.com

Server: 192.168.12.250

Address: 192.168.12.250#53


Name: file-server.corp.example.com

Address: 192.168.10.247


sh-3.2# ping file-server.corp.example.com

ping: cannot resolve file-server.corp.example.com: Unknown host

sh-3.2# file-server.corp.example.com

sh: file-server.corp.example.com: command not found

sh-3.2# lookupd -flushcache

sh: lookupd: command not found

sh-3.2#

Posted on May 15, 2012 5:16 PM

Reply

There are no replies.

How do I clear DNS cache?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.