* resolve.c (main): Make error message note that misconfiguration
authorTom Yu <tlyu@mit.edu>
Tue, 12 Jun 2001 21:50:23 +0000 (21:50 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 12 Jun 2001 21:50:23 +0000 (21:50 +0000)
of /etc/hosts, as well as problems with resolver library, are all
likely to cause failure.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13343 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/resolve/ChangeLog
src/tests/resolve/resolve.c

index c0e101d318db9235ede5917f7a32a097221032c3..b24f8fe3c19a942447552315115d1d31e7b828d2 100644 (file)
@@ -1,3 +1,9 @@
+2001-06-12  Tom Yu  <tlyu@mit.edu>
+
+       * resolve.c (main): Make error message note that misconfiguration
+       of /etc/hosts, as well as problems with resolver library, are all
+       likely to cause failure.
+
 1999-10-26  Wilfredo Sanchez  <tritan@mit.edu>
 
        * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
index 023c378f4e6e565df5599d06d1c0d4600b6007e7..8937c23429d039463566d0881955353c48594969 100644 (file)
@@ -137,8 +137,19 @@ main(argc, argv)
         */
        ptr = strchr(host->h_name, '.');
        if (ptr == NULL || ptr[1] == '\0') {
-               fprintf(stderr, "\nResolve library did not return a fully qualified domain name\n");
-               fprintf(stderr, "You may have to reconfigure the kerberos distribution to select a\ndifferent set of libraries using --with-netlib[=libs]\n");
+               fprintf(stderr,
+                       "\nResolve library did not return a "
+                       "fully qualified domain name.\n\n"
+                       "If you are using /etc/hosts before DNS, "
+                       "e.g. \"files\" is listed first\n"
+                       "for \"hosts:\" in nsswitch.conf, ensure that "
+                       "you have listed the FQDN\n"
+                       "as the first name for the local host.\n\n"
+                       "If this does not correct the problem, "
+                       "you may have to reconfigure the kerberos\n"
+                       "distribution to select a "
+                       "different set of libraries using \n"
+                       "--with-netlib[=libs]\n");
                exit(3);
        }