Subject: Re: [Question] hostname and domain name

ºK­n»¡©ú:
  • ¥Ñ RFC 1178, 1535 ½Í domain zone name ©R¦W ©M hostname ªº¿ï¾Ü
  • RFC 1178, "Choosing a Name for Your Computer"
  • RFC 1535, A Security Problem and Proposed Correction With Widely Deployed DNS Software
    Path: netnews.NCTU.edu.tw!news2!not-for-mail From: cschen@cc.nctu.edu.tw (C.S.Chen) Newsgroups: tw.bbs.config,tw.bbs.comp.network Subject: Re: [Question] hostname and domain name Date: 16 Jul 1997 07:20:31 GMT Organization: National Chiao Tung University, Hsinchu, Taiwan Lines: 122 Message-ID: <5qhsnv$s93$1@news2.nctu.edu.tw> References: <5qc5i6$1gp@aidebbs.edu.tw> NNTP-Posting-Host: localhost X-Trace: 869037631 28963 cschen@localhost 127.0.0.1 X-Newsreader: TIN [UNIX 1.3 950824BETA+ANSI+COLOR PL8] Xref: netnews.NCTU.edu.tw tw.bbs.config:12141 tw.bbs.comp.network:63025 Tsung Han Yang (han@biostat.cgu.edu.tw) ´£¨ì: : °Ý­ÓÃö©ó hostname & domain name ªº°ÝÃD. : : ¦b Rfc 1178 (choosing a name for your computer) ¤¤¦³¤@¬q : »¡¨ì hostname ³Ì¦n¬O avoid domain names. : --- : Avoid domain names : For technical reasons, domain names should be avoided. In : particular, name resolution of non-absolute hoshnames is : problematic. Resolvers will check names against domains before : checking them against hostnames. ... : [delete, ¤§«á¥LÁ|¤F­Ó¨Ò¤l - ¬O»¡ email µ¹ libes@rutgers at : yale.edu. ¥i¯à·|±H¨ì libes@rutgers.edu ] ³o¤@¬q»¡©úªº·N«ä¬O»¡, --------------------------------------------------- 1) ¦³¤@­Ó YALE ¤j¾Ç, ¦b ".edu" µù¥U ".yale.edu". 2) ¦³¤@­Ó Rutgers ¤j¾Ç, ¦b ".edu" µù¥U ".rutgers.edu". ©Ò¥H, "rutgers.yale.edu." ³o¼Ëªº¦W¦r, ¥i¯à·|¥X²{³\¦h°ÝÃD. -- ³Ì¦n, ¤£­n¦b "yale.edu" ¤Uµn°O³oºØ¦WºÙ. ¦ý, ³oºØ°ÝÃD, »¡¹ê¦bªº, ÆZÃøÁ×§Kªº. ¨ä¹ê, ³oºØ¨Ò¤l, ²{¦b Internet ¤W¤@°ï. ²z½×¤W, ¦b»OÆW, «Ü¦h¾Ç®Õ, ".edu.tw" ¤U, ¦pªG­n±H e-mail ¨ì¬ü°ê MIT, ¦pªG e-mail address Ãþ¦ü¤U­±, (¨â³y³£¦³) ¥i¯à´N¤@¤Ñ¨ì±ß³£·|¥X°ÝÃD. mbox@mit.edu ( ¬ü°ê MIT ) mbox@mit.edu.tw ( ©ú§Ó¤u±M) ¥Ø«e, ©ú§Ó¤u±M¨S¦³¬° mit.edu.tw ³] MX RR, ¦pªG³]¤F, «Ü¥i¯à·|¤Ñ¤U¤j¶Ã. ¦]¬°, ºô¸ô¤W¤@°ïªº BIND ³£ÁÙ¬O BIND 4.8.3. °²³], ¬Y host ªº /etc/resolv.conf ªº domain ³]¦¨ A.EDU.TW ­n°e " mbox@mit.edu " ³o¼Ëªº mail, ¥Ø«e³Ì±`¨£ªº BIND ·|·Ó©³¤Uªº¶¶§Ç. - mbox@mit.edu.A.EDU.TW - mbox@mit.edu.EDU.TW - mbox@mit.edu.TW <-- ©ú§Ó¤u±M ( ¥Ø«e¤£¦s¦b ³oºØ e-mail addr. ) - mbox@mit.edu. <-- ¬ü°ê MIT ·sª©ªº BIND, ¹ï " mbox@mit.edu " <-- no endind '. ' ·|¸Õ³o¨â­Ó. - mbox@mit.edu <-- ¬ü°ê MIT - mbox@mit.edu.A.edu.tw. °Ñ·Ó BIND 4.9.6-REL ªº OPTIONS »¡©ú ------------------------------------------------ RFC1535 (origin: paul@vix.com) if set, the resolver's default "search" list will be just the entire "domain" name rather than the sliding window it had before 4.9.2. this will make the default search list shorter, so folks who are saying "domain a.b.c" and relying on the implicit "search a.b.c a.b c" will miss "a.b" and "c". this option is on for compatibility with RFC 1535. you should NOT turn it off, it is on by default. : --- : : Á|¨Ò»¡©ú§Ú¹J¨ìªº°ÝÃD (3 ­Ó) : : 1. : ¥Ø«e¤w¦³ host ABC.cgu.edu.tw ¦ì©ó cgu.edu.tw ªº main frame ¤W, : ¦Ó ABC ³o³æ¦ì¤]¦³¥»¨­ªº lan (novell), ²{¦b·Q¦b lan ¤W¥[¤@¥x unix. : ·Q¥H xyz °µ¬°¥Lªº hostname ¦Ó ABC.cgu.edu.tw °µ¬°¥Lªº domain. : ³o¼Ë¬O§_¦³°ÝÃD??? if so then ABC.cgu.edu.tw ´N¬J¬O domain ¤]¬O host name. : ¦ý, RFC 1178 Á|ªº¨º­Ó¨Ò¤l¤]¤£·|µo¥Í¦b³o­Ó±¡ªp¤U°Ú. : (user@ABC vs user@xyz.ABC) ¬Ý¤£¥X, ³o¸ò RFC 1178 ¦³¤°»òÃö«Y. §A»¡ªº±¡ªp, ³o¤£·|¦³°ÝÃD. «Ü¦h³æ¦ì³£³o¼Ë¥Î. NCTU.edu.tw ¬J¬O¤@­Ó domain zone ªº¦WºÙ, ¤]¬O¤@­Ó FQDN. ³o¦b DNS ¨t²Î¤W, ¬O¨âºØ¤£¦Pªº record ( NS, A), ¤£·|¦³©èIJ. §ó¦hªº¨Ò¤l. -- CC.NCTU.edu.tw, csie.nctu.edu.tw, ... -- NTHU.edu.tw, ... : 2. : ¦A¨Ó´N¬O DNS ªº³]©w. ­Y¤£¬O¥H xyz.ABC.cgu.edu.tw ¬° ABC.cgu.edu.tw : (domain) ªº primary DNS, ¦Ó¬O¥H ABC.cgu.edu.tw ¨Ó©w¸q ABC.cgu.edu.tw : ³o­Ó domain. : : ABC.cgu.edu.tw ªº resolv.conf (see PS.1) ¤£¥Î­×§ï. ¤£»Ý¦A¥[¤W : 'domain ABC.cgu.edu.tw'. ¹ï§a. ¦Ó xyz.ABC.cgu.edu.tw ªº : resolv.conf (PS.2) ´N³]¦¨§Ú¤U­±¼gªº¨º¼Ë. resolv.conf ªº³]©w, ¥»´N¬O¬°¤F¤è«K. ¤£ºÞ«ç¼Ë, µª®×¤@©w¥i¥H´ê¥X¨Ó. : 3. : ­Y¬O·Ó§Ú»¡ªº³]©w, ¨º§ÚÁÙ­n§i¶D cgu.edu.tw domain ªº soa ¤°»ò©O? : ¦Ó ABC.cgu.edu.tw ¤]»Ý³]¦¨ ABC.cgu.edu.tw (domain) ªº soa. ¹ï§a. ¤£©ú¥Õ, ³oùظò SOA ªº­þ¤@¶µ·|¦³©èIJ. -- §A·|¤£·|·d¿ù, ¤°»ò¬O DNS ¤Wªº SOA RR ? NCTU.edu.tw ¹L¥h¤@ª½³o¼Ë¥Î, NTHU.edu.tw ¤@ª½³o¼Ë¥Î. -- «Ü¦h³æ¦ì³£³o¼Ë¥Î, ÁÙ¤£³£ run ±o¦n¦nªº. : : PS.1 resolv.conf @ ABC.cgu.edu.tw : --- : domain cgu.edu.tw : nameserver ip.of.soa.of.cgu.edu.tw : nameserver .... : --- : : PS.2 resolv.conf @ xyz.ABC.cgu.edu.tw : --- : domain ABC.cgu.edu.tw : nameserver ip.of.ABC.cgu.edu.tw : --- -- Joe. C.S.Chen, cschen@ns.nctu.edu.tw