summaryrefslogtreecommitdiffstats
path: root/src/tests/resolve
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2001-06-12 21:50:23 +0000
committerTom Yu <tlyu@mit.edu>2001-06-12 21:50:23 +0000
commitd66842af3b99d2e5137debd4e5446571143f013a (patch)
tree32d998481a1c2ba9e67df5037e7d1cae55e9c7aa /src/tests/resolve
parent5ca4adf0acc55dcdb0f12338926f371c97c8f889 (diff)
downloadkrb5-d66842af3b99d2e5137debd4e5446571143f013a.tar.gz
krb5-d66842af3b99d2e5137debd4e5446571143f013a.tar.xz
krb5-d66842af3b99d2e5137debd4e5446571143f013a.zip
* 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13343 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/resolve')
-rw-r--r--src/tests/resolve/ChangeLog6
-rw-r--r--src/tests/resolve/resolve.c15
2 files changed, 19 insertions, 2 deletions
diff --git a/src/tests/resolve/ChangeLog b/src/tests/resolve/ChangeLog
index c0e101d318..b24f8fe3c1 100644
--- a/src/tests/resolve/ChangeLog
+++ b/src/tests/resolve/ChangeLog
@@ -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,
diff --git a/src/tests/resolve/resolve.c b/src/tests/resolve/resolve.c
index 023c378f4e..8937c23429 100644
--- a/src/tests/resolve/resolve.c
+++ b/src/tests/resolve/resolve.c
@@ -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);
}