home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / sysadm / addhost.z / addhost
Encoding:
Text File  |  1998-10-20  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. AAAADDDDDDDDHHHHOOOOSSSSTTTT((((1111MMMM))))                                                        AAAADDDDDDDDHHHHOOOOSSSSTTTT((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      addhost - add and modify an entry in the host file.
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////ssssyyyyssssaaaaddddmmmm////pppprrrriiiivvvvbbbbiiiinnnn////aaaaddddddddhhhhoooosssstttt ----iiii _i_p_A_d_d_r_e_s_s ----hhhh _h_o_s_t_N_a_m_e [[[[----ffff]]]]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _A_d_d_h_o_s_t adds or modifies an entry in the host file. The entry is added to
  16.      the end of /_e_t_c/_h_o_s_t_s. If the hostname already exists, the entry is
  17.      modified to use the new IP address. If the IP address already exists, the
  18.      hostname is updated to use the new hostname.
  19.  
  20. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  21.      ----iiii _i_p_A_d_d_r_e_s_s
  22.                The _i_p_A_d_d_r_e_s_s should be in dotted notation, e.g. 195.3.4.60.
  23.  
  24.      ----hhhh _h_o_s_t_N_a_m_e
  25.                The _h_o_s_t_N_a_m_e can be just the name, e.g. foo, or a fully
  26.                qualified name, e.g. foo.company.com.
  27.  
  28.      ----ffff        If this flag is not used, the entry is not added when the entry
  29.                exists remotely.  If this flag is used, the entry is added
  30.                without checking for remote existance.
  31.  
  32. FFFFIIIILLLLEEEESSSS
  33.      /etc/hosts    System host name file
  34.  
  35. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  36.      sysmgr(1M), runpriv(1M), hosts(4).
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.