Category Archives: solaris

HOW TO: Disable DNS caching

For Solaris:
To disable the DNS cache on Solaris
1. Edit the file /etc/nscd.conf as follows:
a. un-comment the line # enable-cache hosts no.
b. add the line enable-cache ipnodes no after the line above.
2. To activate the changes, restart the nscd daemon by typing the command:
$ svcadm restart svc:/system/name-service-cache

For AIX:
To disable the DNS cache on AIX 6.1
DNS caching is managed by the network caching daemon (netcd).
1. stop the network caching daemon : #stopsrc -s netcd
2. prevent the network caching daemon from starting at boot time, edit the file /etc/rc.tcpip:
a. comment the line for the netcd daemon as follows:
# Start up binld daemon
#start /usr/sbin/binld “$src_running”
For more information see IBM Technote T1010925

For Linux:
To disable the DNS cache on Linux
1. Edit the file /etc/nscd.conf as follows:
a. un-comment or update the line to reflect: enable-cache hosts no
2. To activate the changes, restart the nscd daemon by typing the command:
# service nscd restart
3. Make sure the dnsmasq service not running:
a. stop the service : # service dnsmasq stop
b. disable the service from starting at boot time :
# chkconfig dnsmasq off
# chkconfig –list dnsmasq
dnsmasq         0:off   1:off   2:off   3:off   4:off   5:off   6:off
#

How to configure a user on SUN Solaris 10

edit /etc/passwd and update the shell, for example, i want to configure bash for root
root:x:0:0:Super-User:/:/usr/bin/bash

log out and log in again to verify.

within your home folder, also specified in /etc/passwd, above example sets / as the home folder for root, create a .profile file with the following content

export TERM=vt100
export PS1=”$USER@$HOSTNAME:w> [e[0m]”

this will set your terminal to vt100, which allows for easy editing and does some formatting on your prompt 🙂
check http://en.wikipedia.org/wiki/PS1 for more info!

How to configure NTP on SUN Solaris 10

cp /etc/inet/ntp.server /etc/inet/ntp.conf

edit the ntp.conf file.

Syncing to an external NTP server:

(see http://www.pool.ntp.org/ for a list of public time servers)

change `server 127.127.XType.0`
to `server time_server`

you can add multiple servers also, for example:

server 0.be.pool.ntp.org
server 1.be.pool.ntp.org
server 2.be.pool.ntp.org
server 3.be.pool.ntp.org

comment out `fudge 127.127.XType.0 stratum 0`

touch /var/ntp/ntp.drift
svcadm enable svc:/network/ntp

—————————————-
Configuring an NTP Client in Solaris 10:
—————————————-

cp /etc/inet/ntp.client /etc/inet/ntp.conf
svcadm enable svc:/network/ntp