Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum name length of 63 characters respected these days? #23

Open
DanielOaks opened this issue Jul 23, 2016 · 4 comments
Open

Maximum name length of 63 characters respected these days? #23

DanielOaks opened this issue Jul 23, 2016 · 4 comments

Comments

@DanielOaks
Copy link
Member

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).

@euank
Copy link

euank commented Jul 25, 2016

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

Ref: inspircd/inspircd@f2db4b7

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.

@DanielOaks
Copy link
Member Author

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).

@ailin-nemui
Copy link

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

@dequis
Copy link
Member

dequis commented Nov 20, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants