> How do I flush DNS cache on opensolaris? > > At a guess I would of thought "svcadm restart > dns/client" and "svcadm restart dns/multicast" may > force a flush when they restart. I don't know how to > test if that works. > > The equivalent on Windows that I know worls is: > "ipconfig /flushdns", which I usually follow with a > "ipconfig /release" and "ipconfig /renew" just to > refresh everything.
I don't think restarting svc:/network/dns/client does much; last I looked it just waits for DHCP (if present) to fool with /etc/resolv.conf. In particular, I don't think it runs anything that caches. One thing you're forgetting is nscd -i hosts nscd -i ipnodes or if you prefer svcadm restart sfc:/system/name-service-cache (although that flushes everything including account info, not just host names and addresses). -- This message posted from opensolaris.org