2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 14:55:30 +00:00

Make it a warning rather than an error if resolv.conf is missing.

This commit is contained in:
Ted Lemon
1997-06-08 04:05:21 +00:00
parent 9868534313
commit 732a90b290
4 changed files with 64 additions and 51 deletions

View File

@@ -48,7 +48,7 @@
#ifndef lint
static char copyright[] =
"$Id: dns.c,v 1.3 1997/05/09 08:02:33 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
"$Id: dns.c,v 1.4 1997/06/08 04:05:20 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -198,6 +198,9 @@ static int nslookup (id, qname, namelen, qtype, qclass)
int i, status;
struct sockaddr_in *server = pick_name_server ();
if (!server)
return 0;
/* Construct a header... */
hdr = (HEADER *)query;
memset (hdr, 0, sizeof *hdr);
@@ -255,6 +258,9 @@ static int zonelookup (id, qname, namelen, qclass)
int i, status, count;
struct sockaddr_in *server = pick_name_server ();
if (!server)
return 0;
/* Construct a header... */
hdr = (HEADER *)query;
memset (hdr, 0, sizeof *hdr);