Ako Ni wrote:
> Hi all,
> 
> what is the command on refreshing the /etc/hosts config?
> did add some hosts on the on the file and want to update the running network
> 
> tried command: svcadm restart network
> but error:
> bash: svcadm: command not found
>  
> im running SunOS  5.9

the svcs infrastructure was introduced in Solaris 10, so you don't have it 
in Solaris 9.
If you add sth. to /etc/hosts, you shouldn't need to do anything to 
"refresh" the config - as soon as the file is changed, hostname lookups 
that refer to /etc/hosts should pick them up. You need to make sure 
/etc/nsswitch.conf contains "file" in the "hosts" line. For the details 
please consult the man-pages.

HTH
Michael
-- 
Michael Schuster        Sun Microsystems, Inc.
http://blogs.sun.com/recursion
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to