*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> sysadm/addhost (1)              
Title
Content
Arch
Section
 

Contents


ADDHOST(1M)							   ADDHOST(1M)


NAME    [Toc]    [Back]

     addhost - add and modify an entry in the host file.

SYNOPSIS    [Toc]    [Back]

     /usr/sysadm/privbin/addhost -i ipAddress -h hostName [-f]

DESCRIPTION    [Toc]    [Back]

     Addhost adds or modifies an entry in the host file. The entry is added to
     the end of	/etc/hosts. If the hostname already exists, the	entry is
     modified to use the new IP	address. If the	IP address already exists, the
     hostname is updated to use	the new	hostname.

OPTIONS    [Toc]    [Back]

     -i	ipAddress
	       The ipAddress should be in dotted notation, e.g.	195.3.4.60.

     -h	hostName
	       The hostName can	be just	the name, e.g. foo, or a fully
	       qualified name, e.g. foo.company.com.

     -f	       If this flag is not used, the entry is not added	when the entry
	       exists remotely.	 If this flag is used, the entry is added
	       without checking	for remote existance.

FILES    [Toc]    [Back]

     /etc/hosts	   System host name file

SEE ALSO    [Toc]    [Back]

      
      
     sysmgr(1M), runpriv(1M), hosts(4).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
deletehost IRIX delete an entry from the host file.
sethostent OpenBSD get network host entry
gethostbyname2 FreeBSD get network host entry
sethostent FreeBSD get network host entry
gethostbyname2 NetBSD get network host entry
hstrerror FreeBSD get network host entry
herror FreeBSD get network host entry
gethostent FreeBSD get network host entry
hstrerror OpenBSD get network host entry
gethostbyname Linux get network host entry
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service