How to Flush DNS Cache in Solaris 11

por | 21 abril, 2023
svcadm restart /system/name-service/cache

This will handle stopping and starting the name service cache daemon, which can be viewed by the following, noting that the PID of nscd changed.

# ps -ef | grep nscd | grep -v grep
root 27004 25753 0 Mar 05 ? 19:59 /usr/sbin/nscd
# svcadm restart /system/name-service/cache
# ps -ef | grep nscd | grep -v grep
root 10668 25753 0 13:59:49 ? 0:01 /usr/sbin/nscd