[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hosts



On Thu, 11 Dec 1997, Christophe Kalt wrote:

> On Dec 10, Tommi wrote:
> | Is there a limit on how long a host can be when on irc? I have a host that
> | has 64 characters and I only get a ip number.
> 
> common/struct_def.h:
> 
> #define HOSTLEN         63      /* Length of hostname. Updated to         */
>                                 /* comply with RFC1123                    */
> 

The maximum length for a hostname + domainname is 255. The max length the
each individual component (in between the dots) is 63. So I recommend this
to be increased accordingly.

Null @IRCnet

-- Robert Martin-Legène (RM59), Network Manager, DKnet (AS2109)

   main(){int a[2],b[2];pipe(a);pipe(b);if(fork()){dup2(a[0],0);dup2(b[1],1)
   ;}else{dup2(b[0],0);dup2(a[1],1);write(1,"R",1);}execlp("cat","cat",0);}