modern-irc icon indicating copy to clipboard operation
modern-irc copied to clipboard

Maximum name length of 63 characters respected these days?

Open DanielOaks opened this issue 9 years ago • 4 comments

RFCs say server names and hostnames can only be a max of 63 characters, do servers actually respect that these days or do they allow longer names?

Related, is there an RPL_ISUPPORT token that specifies HOSTLEN or something (I think mammon may have proposed one, check out irc-defs lists).

DanielOaks avatar Jul 23 '16 10:07 DanielOaks

Just for an n=1, the below is what inspircd has.

Ref: https://github.com/inspircd/inspircd/commit/f2db4b743f0df9b9e588979fd0fcf2815e54af44

Notice that that commit is on master, but not included in any tags (¯_(ツ)_/¯)

Recent released versions of inspircd have 64 as the max in most places, and 63 in chghost, but after that change will have 64 everywhere by default (+ configuration possible).

Back in ancient times (v1 era) the maximum was bumped up from 63 to 64 for user hostnames (for some reason).

inspircd doesn't include HOSTLEN in its ISUPPORT.

euank avatar Jul 25 '16 06:07 euank

Awesome, that's really interesting. Thanks for looking into it, it's much appreciated.

It doesn't look like HOSTLEN is actually used, but fits the style of most other *LEN tokens so I kinda expected it to be out there honestly (especially since hostname lengths are flexible these days, or at least I think some like Freenode can be longer than 63/64).

DanielOaks avatar Jul 25 '16 09:07 DanielOaks

some clients will split messages to keep within 510 bytes based on a hard-coded assumed 63: https://github.com/irssi/irssi/blob/master/src/irc/core/irc-servers.c#L62

ailin-nemui avatar Nov 20 '17 14:11 ailin-nemui

RFCs say server names and hostnames can only be a max of 63 characters, do servers actually respect that these days or do they allow longer names?

A long time ago I got an absurdly long rnds and tried to connect to espernet (charybdis), when it was over 63 or 64 chars it showed a warning on the login notices saying that it ignored the rdns and showed the IP address instead.

dequis avatar Nov 20 '17 14:11 dequis