Date: Fri, 14 Aug 1998 19:48:28 +0200 (CEST) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: adrian@creative.net.au (Adrian Chadd) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Underscores in domain names.. Message-ID: <199808141748.TAA13074@internal> In-Reply-To: <199808141019.SAA24677@mail.creative.net.au> from Adrian Chadd at "Aug 14, 98 06:19:32 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808141748.TAA13074>