always include host name on DNS-related errors
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 16 Dec 1993 23:24:42 +0000 (15:24 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 16 Dec 1993 23:24:42 +0000 (15:24 -0800)
SCCS-vsn: usr.sbin/sendmail/src/err.c 8.17

usr/src/usr.sbin/sendmail/src/err.c

index f5a22f0..5f96da1 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)err.c      8.16 (Berkeley) %G%";
+static char sccsid[] = "@(#)err.c      8.17 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -472,16 +472,16 @@ errstring(errno)
 
 # ifdef NAMED_BIND
          case HOST_NOT_FOUND + E_DNSBASE:
 
 # ifdef NAMED_BIND
          case HOST_NOT_FOUND + E_DNSBASE:
-               return ("Name server: host not found");
+               return ("Name server: %s: host not found", CurHostName);
 
          case TRY_AGAIN + E_DNSBASE:
 
          case TRY_AGAIN + E_DNSBASE:
-               return ("Name server: host name lookup failure");
+               return ("Name server: %s: host name lookup failure", CurHostName);
 
          case NO_RECOVERY + E_DNSBASE:
 
          case NO_RECOVERY + E_DNSBASE:
-               return ("Name server: non-recoverable error");
+               return ("Name server: %s: non-recoverable error", CurHostName);
 
          case NO_DATA + E_DNSBASE:
 
          case NO_DATA + E_DNSBASE:
-               return ("Name server: no data known for name");
+               return ("Name server: %s: no data known", CurHostName);
 # endif
 
          case EPERM:
 # endif
 
          case EPERM: