From owner-freebsd-questions Fri Aug 14 10:49:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA05867 for freebsd-questions-outgoing; Fri, 14 Aug 1998 10:49:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA05862 for ; Fri, 14 Aug 1998 10:49:06 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer david.siemens.de) Received: from mail.siemens.de (salomon.siemens.de [139.23.33.13]) by david.siemens.de (8.9.1/8.9.1) with ESMTP id TAA25028 for ; Fri, 14 Aug 1998 19:48:37 +0200 (MET DST) Received: from curry.mchp.siemens.de (daemon@curry.mchp.siemens.de [146.180.31.23]) by mail.siemens.de (8.9.1/8.9.1) with ESMTP id TAA29317 for ; Fri, 14 Aug 1998 19:48:38 +0200 (MET DST) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.8.8/8.8.8) id TAA13864 for ; Fri, 14 Aug 1998 19:48:34 +0200 (CEST) From: Andre Albsmeier Message-Id: <199808141748.TAA13074@internal> Subject: Re: Underscores in domain names.. In-Reply-To: <199808141019.SAA24677@mail.creative.net.au> from Adrian Chadd at "Aug 14, 98 06:19:32 pm" To: adrian@creative.net.au (Adrian Chadd) Date: Fri, 14 Aug 1998 19:48:28 +0200 (CEST) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Any idea on how to make FreeBSD's resolver allow underscores in domain names? > It seems to want to reject them as per the RFC, but there are a lot of sites > out there a proxy server SHOULD see that use them.. > > Thanks, *** lib/libc/net/res_comp.c.ORI Fri May 8 21:36:22 1998 --- lib/libc/net/res_comp.c Fri May 8 21:36:51 1998 *************** *** 148,154 **** #define digitchar(c) ((c) >= 0x30 && (c) <= 0x39) #define borderchar(c) (alphachar(c) || digitchar(c)) ! #define middlechar(c) (borderchar(c) || hyphenchar(c)) #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) int --- 148,154 ---- #define digitchar(c) ((c) >= 0x30 && (c) <= 0x39) #define borderchar(c) (alphachar(c) || digitchar(c)) ! #ifdef ANDRE ! #define middlechar(c) (borderchar(c) || hyphenchar(c) || ((c) == '_')) ! #else ! #define middlechar(c) (borderchar(c) || hyphenchar(c)) ! #endif #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) int That's what I was using... Simply take the line directly after the #ifdef ANDRE :-) -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message