From d66842af3b99d2e5137debd4e5446571143f013a Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 12 Jun 2001 21:50:23 +0000 Subject: * 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 --- src/tests/resolve/ChangeLog | 6 ++++++ src/tests/resolve/resolve.c | 15 +++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'src/tests') 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 + + * 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 * 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); } -- cgit