<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: /etc/hosts on a  Kerberos client - Please provide your advise.</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Sridhar,</FONT>
</P>

<P><FONT SIZE=2>Our company has a lot of experience with Oracle ASE configuration and its Kerberos capabilities. I can help you with this issue if you provide me with some background to the actual configuration being tested - ie. what version of Oracle product is being used, what architecture, platforms etc.</FONT></P>

<P><FONT SIZE=2>If you can provide me with these details I suggest we continue this subject offlist.</FONT>
</P>

<P><FONT SIZE=2>Thanks, </FONT>
<BR><FONT SIZE=2>Tim Alsop</FONT>
<BR><FONT SIZE=2>CyberSafe Limited. </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Sridhar Murthy [<A HREF="mailto:murthys@us.ibm.com">mailto:murthys@us.ibm.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: 12 September 2003 06:44</FONT>
<BR><FONT SIZE=2>To: kerberos@mit.edu</FONT>
<BR><FONT SIZE=2>Cc: krbdev@mit.edu; Sam Hartman; James McBride; Richard A Ernst; glongsine@fs.fed.us; Steve Sipocz Jr; wdeschene@fs.fed.us</FONT></P>

<P><FONT SIZE=2>Subject: Re: /etc/hosts on a Kerberos client - Please provide your advise.</FONT>
</P>

<P><FONT SIZE=2>Dear Kerberos Support Analyst:</FONT>
</P>

<P><FONT SIZE=2>At the outset&nbsp; I&nbsp; would like to convey our sincere thanks&nbsp; for providing an excellent support to the&nbsp; IT community&nbsp; on KRB&nbsp; matters.</FONT></P>

<P><FONT SIZE=2>We are currently working on&nbsp; integrating an Oracle product with a Kerberos server. My colleague Jim McBride had written to krbdev@mit.edu&nbsp; and&nbsp; Sam Harman responded with his comments that as long as gethostbyaddr(gethostbyname(gethostname())) returns FQDN, things should work fine.</FONT></P>

<P><FONT SIZE=2>Oracle insists that we need to provide the FQDN&nbsp; in the /etc/hosts file and all along we have been telling them that it is not a MUST for us to put the FQDN name in the /etc/hosts&nbsp; files. Although Oracle's argument makes sense in a set-up where DNS is not configured correctly,&nbsp; we all know it, from the Name Service management perspective it is not a good idea to have the FQDN in the /etc/hosts. We should let the resolver libraries&nbsp; take care of the FQDN issues while making sue that the DNS is configured according to the specifications.</FONT></P>

<P><FONT SIZE=2>I am more than&nbsp; convinced that our environment&nbsp; is correctly configured and any&nbsp; application which relies on&nbsp; resolver libraries to derive the FQDN of the host will work correctly in our environment. I do not find it necessary to put the FQDN of&nbsp; the&nbsp; host in&nbsp; /etc/hosts file of the machine ( which makes the DNS set-up meaningless).</FONT></P>

<P><FONT SIZE=2>I wrote a very simple program (fqdn_of_host.c)&nbsp; to demonstrate that the resolver libraries are&nbsp; working&nbsp; correctly in an environment where DNS is setup properly and kerberos applications will work correctly in the same environment.</FONT></P>
<BR>

<P><FONT SIZE=2>==================================================================================================</FONT>
<BR><FONT SIZE=2>Some of the AIX commands produce the following results :</FONT>
</P>

<P><FONT SIZE=2>root@denver $ hostname</FONT>
<BR><FONT SIZE=2>denver</FONT>
</P>

<P><FONT SIZE=2>root@denver $ host denver</FONT>
<BR><FONT SIZE=2>denver.r2.fs.fed.us is 9.99.15.50</FONT>
</P>

<P><FONT SIZE=2>root@denver $ nslookup denver</FONT>
<BR><FONT SIZE=2>Server:&nbsp; netsrv.fs.fed.us</FONT>
<BR><FONT SIZE=2>Address:&nbsp; 9.99.15.100</FONT>
</P>

<P><FONT SIZE=2>Name:&nbsp;&nbsp;&nbsp; denver.r2.fs.fed.us</FONT>
<BR><FONT SIZE=2>Address:&nbsp; 9.99.15.50</FONT>
</P>

<P><FONT SIZE=2>root@denver $ nslookup 9.99.15.50</FONT>
<BR><FONT SIZE=2>Server:&nbsp; netsrv.fs.fed.us</FONT>
<BR><FONT SIZE=2>Address:&nbsp; 9.99.15.100</FONT>
</P>

<P><FONT SIZE=2>Name:&nbsp;&nbsp;&nbsp; denver.r2.fs.fed.us</FONT>
<BR><FONT SIZE=2>Address:&nbsp; 9.99.15.50</FONT>
</P>

<P><FONT SIZE=2>root@denver $ ifconfig en0</FONT>
<BR><FONT SIZE=2>en0: </FONT>
<BR><FONT SIZE=2>flags=e080863&lt;UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT&gt;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 9.99.15.50 netmask 0xffffff00 broadcast 9.99.15.255</FONT>
</P>
<BR>

<P><FONT SIZE=2>=============================================================================================</FONT>
</P>

<P><FONT SIZE=2>The /etc/hosts file on denver&nbsp; looks like </FONT>
</P>

<P><FONT SIZE=2>127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loopback localhost&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # loopback (lo0) </FONT>
<BR><FONT SIZE=2>name/address</FONT>
<BR><FONT SIZE=2>9.99.15.50&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; denver</FONT>
<BR><FONT SIZE=2>=============================================================================================</FONT>
<BR><FONT SIZE=2>The&nbsp; /etc/resolv.conf&nbsp;&nbsp; file on denver&nbsp; looks&nbsp; like</FONT>
</P>

<P><FONT SIZE=2>nameserver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9.99.15.100</FONT>
<BR><FONT SIZE=2>search&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r1.fs.fed.us&nbsp;&nbsp; r2.fs.fed.us&nbsp;&nbsp; r3.fs.fed.us </FONT>
<BR><FONT SIZE=2>r6.fs.fed.us&nbsp;&nbsp; boulder.ibm.com&nbsp;&nbsp;&nbsp; ibm.com&nbsp;&nbsp; fs.fed.us </FONT>
<BR><FONT SIZE=2>nameserver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9.17.223.121</FONT>
<BR><FONT SIZE=2>=============================================================================================</FONT>
<BR><FONT SIZE=2>The /etc/netsvc.conf&nbsp; file on the machine looks like:</FONT>
</P>

<P><FONT SIZE=2>hosts=bind4,local</FONT>
<BR><FONT SIZE=2>=============================================================================================</FONT>
<BR><FONT SIZE=2>/* </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp; Source code for&nbsp;&nbsp; fqdn_of_host.c </FONT>
</P>

<P><FONT SIZE=2>*/</FONT>
</P>

<P><FONT SIZE=2>#include &lt;stdio.h&gt;</FONT>
<BR><FONT SIZE=2>#include &lt;strings.h&gt;</FONT>
<BR><FONT SIZE=2>#include &lt;netdb.h&gt;</FONT>
<BR><FONT SIZE=2>#include &lt;sys/types.h&gt;</FONT>
<BR><FONT SIZE=2>#include &lt;sys/socket.h&gt;</FONT>
<BR><FONT SIZE=2>#include &lt;netinet/in.h&gt;</FONT>
<BR><FONT SIZE=2>#include &lt;arpa/inet.h&gt;</FONT>
<BR><FONT SIZE=2>#include &lt;unistd.h&gt;</FONT>
</P>

<P><FONT SIZE=2>main(argc, argv)</FONT>
<BR><FONT SIZE=2>int argc;</FONT>
<BR><FONT SIZE=2>char *argv[];</FONT>
<BR><FONT SIZE=2>{</FONT>
</P>

<P><FONT SIZE=2>&nbsp; unsigned char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host_name[1024],</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name[100],</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *ptr,</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a[4];</FONT>
</P>

<P><FONT SIZE=2>&nbsp;static char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; domain_name[100],</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; addrbuf[32], *ch;</FONT>
</P>

<P><FONT SIZE=2>&nbsp; int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; domain_len;</FONT>
</P>

<P><FONT SIZE=2>&nbsp; struct hostent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *hostptr;</FONT>
</P>

<P><FONT SIZE=2>&nbsp; int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i,</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; count,</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ai[4];</FONT>
</P>

<P><FONT SIZE=2>&nbsp; gethostname(host_name, sizeof(host_name) );</FONT>
<BR><FONT SIZE=2>&nbsp; ptr=host_name ;</FONT>
<BR><FONT SIZE=2>&nbsp; printf (&quot;Host Name by gethostname()&nbsp;&nbsp;&nbsp; : %s \n&quot;, ptr);</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp; hostptr = gethostbyname(ptr);</FONT>
<BR><FONT SIZE=2>&nbsp; printf (&quot;\nHost Name by gethostbyname()&nbsp; : %s \n&quot;, hostptr-&gt;h_name);</FONT>
</P>

<P><FONT SIZE=2>&nbsp; for (i = 0; hostptr-&gt;h_aliases[i]; i++)</FONT>
<BR><FONT SIZE=2>&nbsp; printf (&quot;Host Alias by gethostbyname() : %s\n&quot;, hostptr-&gt;h_aliases[i]);</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp; ch = strchr(hostptr-&gt;h_name,'.');</FONT>
<BR><FONT SIZE=2>&nbsp; if ( ch == NULL ){</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; printf ( &quot;DNS Entry does nor exist as per the hostname returned by gethostbyname()\n&quot;);</FONT>
<BR><FONT SIZE=2>&nbsp; }</FONT>
<BR><FONT SIZE=2>&nbsp; else{</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; printf ( &quot;Domain by gethostbyname()&nbsp;&nbsp;&nbsp;&nbsp; : %s\n&quot;, ++ch);</FONT>
<BR><FONT SIZE=2>&nbsp; }</FONT>
</P>

<P><FONT SIZE=2>&nbsp; for (i=0; i&lt;4; i++)</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ai[i] = hostptr-&gt;h_addr_list[0][i];</FONT>
</P>

<P><FONT SIZE=2>&nbsp; for (i=0; i&lt;4; i++)</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp; a[i] = (unsigned char)(ai[i] &amp; 0xFF);</FONT>
<BR><FONT SIZE=2>&nbsp; snprintf(addrbuf, 32, &quot;%d.%d.%d.%d&quot;, a[0], a[1], a[2], a[3]);</FONT>
<BR><FONT SIZE=2>&nbsp; printf (&quot;Host IP by gethostbyname()&nbsp;&nbsp;&nbsp; : %s\n&quot;, addrbuf);</FONT>
</P>

<P><FONT SIZE=2>&nbsp; hostptr = gethostbyaddr(a,4,AF_INET);</FONT>
<BR><FONT SIZE=2>&nbsp; printf (&quot;\nHost Name by gethostbyaddr()&nbsp; : %s \n&quot;, hostptr-&gt;h_name); }</FONT>
</P>

<P><FONT SIZE=2>=============================================================================================</FONT>
<BR><FONT SIZE=2>cc&nbsp;&nbsp; fqdn_of_host.c&nbsp;&nbsp; -o&nbsp;&nbsp; fqdn_of_host</FONT>
</P>

<P><FONT SIZE=2>When I run the compiled version of the above source code the output looks</FONT>
<BR><FONT SIZE=2>like:</FONT>
</P>

<P><FONT SIZE=2>root@denver $ fqdn_of_host</FONT>
<BR><FONT SIZE=2>Host Name by gethostname()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : denver </FONT>
</P>

<P><FONT SIZE=2>Host Name by gethostbyname()&nbsp;&nbsp;&nbsp; : denver.r2.fs.fed.us </FONT>
<BR><FONT SIZE=2>Domain by gethostbyname()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : r2.fs.fed.us</FONT>
<BR><FONT SIZE=2>Host IP by gethostbyname()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 9.99.15.50</FONT>
</P>

<P><FONT SIZE=2>Host Name by gethostbyaddr()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : denver.r2.fs.fed.us </FONT>
</P>

<P><FONT SIZE=2>root@denver $ </FONT>
</P>

<P><FONT SIZE=2>===============================================================================================</FONT>
</P>

<P><FONT SIZE=2>I am of the opinion&nbsp; that&nbsp;&nbsp; &quot; Oracle's argument that&nbsp; FQDN hostname must </FONT>
<BR><FONT SIZE=2>and should&nbsp; be present on the first line of the /etc/hosts file inorder </FONT>
<BR><FONT SIZE=2>for the kerberos server/clinet&nbsp; to work correctly&nbsp;&nbsp; does not&nbsp;&nbsp; make a good </FONT>
<BR><FONT SIZE=2>argument when DNS is configured correctly and it is assured that DNS will work correctly under all circumstances&quot;.</FONT>
</P>
<BR>

<P><FONT SIZE=2>What am I requesting you for?</FONT>
</P>

<P><FONT SIZE=2>Please confirm to us that &quot; In the environment that has been described in </FONT>
<BR><FONT SIZE=2>this e-mail, it is NOT necessary for us to put the FQDN name of the host </FONT>
<BR><FONT SIZE=2>in&nbsp; /etc/hosts file&nbsp; for the kerberos server/client to work correctly &quot;</FONT>
</P>
<BR>

<P><FONT SIZE=2>Once again, thanks for your help. A quick response to this is gratefully </FONT>
<BR><FONT SIZE=2>acknowledged.</FONT>
</P>
<BR>

<P><FONT SIZE=2>Regards,</FONT>
</P>

<P><FONT SIZE=2>Sridhar</FONT>
</P>

<P><FONT SIZE=2>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;</FONT>
<BR><FONT SIZE=2>IBM BCS -&nbsp; Public Sector</FONT>
<BR><FONT SIZE=2>Voice&nbsp;&nbsp;&nbsp; (303) 924 - 0413</FONT>
<BR><FONT SIZE=2>Email&nbsp;&nbsp;&nbsp; murthys@us.ibm.com</FONT>
<BR><FONT SIZE=2>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;</FONT>
<BR><FONT SIZE=2>----- Forwarded by Sridhar Murthy/Boulder/IBM on 09/11/2003 11:37 PM -----</FONT>
</P>
<BR>

<P><FONT SIZE=2>James McBride</FONT>
<BR><FONT SIZE=2>09/10/2003 01:47 PM</FONT>
</P>
<BR>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To:&nbsp;&nbsp;&nbsp;&nbsp; Sridhar Murthy@IBMUS</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cc:&nbsp;&nbsp;&nbsp;&nbsp; Steve Sipocz Jr/Boulder/IBM@IBMUS, wdeschene@fs.fed.us, </FONT>
<BR><FONT SIZE=2>glongsine@fs.fed.us, Richard A Ernst/Boulder/IBM@IBMUS</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; From:&nbsp;&nbsp; James McBride/Boulder/IBM@IBMUS</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Re: /etc/hosts on a&nbsp; Kerberos client</FONT>
</P>
<BR>

<P><FONT SIZE=2>Srihdar,</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Can you write C program to verify that &quot;gethostbyaddr(gethostbyname(gethostname())) return a correct hostname with </FONT></P>

<P><FONT SIZE=2>an FQDN&quot;?</FONT>
</P>

<P><FONT SIZE=2>TIA </FONT>
</P>

<P><FONT SIZE=2>Jim McBride</FONT>
<BR><FONT SIZE=2>Oracle Deployment and Support</FONT>
<BR><FONT SIZE=2>IBM Corporation</FONT>
<BR><FONT SIZE=2>6300 Diagonal HWY., Stop 003E</FONT>
<BR><FONT SIZE=2>Boulder, CO&nbsp; 80301-9020</FONT>
<BR><FONT SIZE=2>Office: (303) 924-5626</FONT>
<BR><FONT SIZE=2>Lab: (303) 924-0212</FONT>
<BR><FONT SIZE=2>Fax: (303) 924-9233</FONT>
<BR><FONT SIZE=2>mcbridejt@us.ibm.com</FONT>
</P>
<BR>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>Sam Hartman &lt;hartmans@mit.edu&gt;</FONT>
<BR><FONT SIZE=2>09/10/2003 12:40 PM</FONT>
</P>

<P><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To:&nbsp;&nbsp;&nbsp;&nbsp; James McBride/Boulder/IBM@IBMUS</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cc:&nbsp;&nbsp;&nbsp;&nbsp; &lt;krbdev@mit.edu&gt;, wdeschene@fs.fed.us, Sridhar Murthy/Boulder/IBM@IBMUS, </FONT>
<BR><FONT SIZE=2>Kurt Bevers &lt;Kurt.Bevers@oracle.com&gt;, Steve Sipocz Jr/Boulder/IBM@IBMUS</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Re: /etc/hosts on a&nbsp; Kerberos client</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>&gt;&gt;&gt;&gt;&gt; &quot;James&quot; == James McBride &lt;mcbridejt@us.ibm.com&gt; writes:</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; Dear Kerberos Support Analyst:</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; Oracle Support is reporting that MIT Kerberos requires that</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; the FQDN of a Kerberos client must be in the /etc/hosts</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; file.&nbsp; They provided the URL below as a reference:</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; <A HREF="http://web.mit.edu/kerberos/www/krb5-1.3/krb5-1.3.1" TARGET="_blank">http://web.mit.edu/kerberos/www/krb5-1.3/krb5-1.3.1</A></FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; /doc/krb5-admin.html#Getting%20DNS%20Information%20Correct</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; We feel that Kerberos can use DNS and the operating system</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; to determine the FQDN of a machine.</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; Please provide your perspective on this.</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; Thanks In Advance,</FONT>
</P>
<BR>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; Jim McBride Oracle Deployment and Support IBM Corporation</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; 6300 Diagonal HWY., Stop 003E Boulder, CO 80301-9020</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; Office: (303) 924-5626 Lab: (303) 924-0212 Fax: (303)</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; 924-9233 mcbridejt@us.ibm.com</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; _______________________________________________ krbdev</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; mailing list krbdev@mit.edu</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; James&gt; <A HREF="https://mailman.mit.edu/mailman/listinfo/krbdev" TARGET="_blank">https://mailman.mit.edu/mailman/listinfo/krbdev</A></FONT>
</P>

<P><FONT SIZE=2>Hi.&nbsp; The address krbdev@mit.edu is not an appropriate place to request</FONT>
<BR><FONT SIZE=2>Kerberos support.&nbsp; This address is for discussion of development of</FONT>
<BR><FONT SIZE=2>MIt Kerberos.&nbsp; You may want to address support questions to</FONT>
<BR><FONT SIZE=2>kerberos@mit.edu in the future.</FONT>
</P>
<BR>

<P><FONT SIZE=2>That said, with regard to DNS and hostnames, the requirement is that</FONT>
<BR><FONT SIZE=2>gethostbyaddr(gethostbyname(gethostname())) return a correct hostname</FONT>
<BR><FONT SIZE=2>with an FQDN.&nbsp; The easiest way of guaranteeing this is to make sure</FONT>
<BR><FONT SIZE=2>that both /etc/hosts and DNS will correctly resolve the machine.</FONT>
</P>

<P><FONT SIZE=2>Things that typically do not work include listing the machine's IP in</FONT>
<BR><FONT SIZE=2>/etc/hosts without the FQDN first; listing the machine's name on the</FONT>
<BR><FONT SIZE=2>localhost line in /etc/hosts; etc.</FONT>
</P>

<P><FONT SIZE=2>Not listing the machine's name in /etc/hosts at all while correctly</FONT>
<BR><FONT SIZE=2>configuring DNS will tend to work correctly.</FONT>
</P>
<BR>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>________________________________________________</FONT>
<BR><FONT SIZE=2>Kerberos mailing list&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Kerberos@mit.edu</FONT>
<BR><FONT SIZE=2><A HREF="https://mailman.mit.edu/mailman/listinfo/kerberos" TARGET="_blank">https://mailman.mit.edu/mailman/listinfo/kerberos</A></FONT>
</P>

</BODY>
</HTML>