Date: 30 Aug 2003 16:07:00 +0200 From: "Clemens Fischer" <ino-qc@spotteswoode.de.eu.org> To: "Kelly Yancey" <kbyanc@posi.net> Cc: luigi@freebsd.org Subject: Re: hostnames resolving problem Message-ID: <ekz3b5ob.fsf@ID-23066.news.dfncis.de> In-Reply-To: <20030829121458.W4705-100000@gateway.posi.net> (Kelly Yancey's message of "Fri, 29 Aug 2003 12:18:30 -0700 (PDT)") References: <20030829121458.W4705-100000@gateway.posi.net>
next in thread | previous in thread | raw e-mail | index | archive | help
* Kelly Yancey: > diff -u -p -r1.4.2.17 ipfw2.c > --- ipfw2.c 25 Jul 2003 08:23:07 -0000 1.4.2.17 > +++ ipfw2.c 29 Aug 2003 19:14:33 -0000 > @@ -1879,6 +1879,10 @@ lookup_host (char *host, struct in_addr > if ((he = gethostbyname(host)) == NULL) > return(-1); > *ipaddr = *(struct in_addr *)he->h_addr_list[0]; > + if (he->h_addr_list[1] != NULL) { > + warn("%s resolved to multiple addresses, only using %s", > + host, inet_ntoa(*ipaddr)); > + } that would not be my cup of tea, because by this ipfw(8) becomes "unscriptable", ie. i'd have to grep(1) for messages and start from scratch again. i guess this problem should be detected and handled ahead of running ipfw(8). note that you can always use `-p preprocessor' for this. clemens
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ekz3b5ob.fsf>