Monday, April 25, 2011

Chnage TimeZone in Solaris

Edit this file with Vi
# vi /etc/TIMEZONE
Change TZ=US/Eastern or US/Central or etc...

The futime zones are listed in /usr/share/lib/zoneinfo

Have a nice Day!

Flush DNS in Windows/Linux/Solaris

In Microsoft Windows:
run this command from dos prompt C:> ipconfig /flushdns

In Linux

Login as root and run this command # /etc/init.d/nscd restart
If you find dnsmasq dns cache, then use this command also:
/etc/init.d/dnsmasq restart

In Solaris
Login as root
Check PID using : ps -ef : grep nscd
Kill it using : pkill or kill
and restart the nscd daemon with : /usr/sbin/nscd

To verify for the running process use : ps -ef : grep nscd

Have a nice day!