NetAlertX icon indicating copy to clipboard operation
NetAlertX copied to clipboard

NEWDEV_NAME_CLEANUP_REGEX handles home.arpa incorrectly, resulting in malformed hostnames

Open ps1noob opened this issue 3 months ago โ€ข 5 comments

Is there an existing issue for this?

  • [x] I have searched the existing open and closed issues

Is your feature request related to a problem? Please describe

Starting up a NetAlertX container with all the default settings in a home environment leveraging RFC 8375 (Special-Use Domain 'home.arpa.'), device names are formatted as 'NetBIOS hostname''arpa'.

Describe the solution you'd like

I would like the default NEWDEV_NAME_CLEANUP_REGEX to properly handle the home.arpa suffix.

The solution should be updated to: Recognize .home.arpa as a valid local domain. Strip the suffix entirely (preferred) to result in just 'NetBIOS hostname'.

Describe alternatives you've considered

I have considered manually adjusting the regex in my local configuration or renaming devices manually after discovery. However, since home.arpa is the official IETF standard for home networking, the default cleanup rules in NetAlertX should support this out of the box to prevent malformed names for new users.

Anything else?

This is based on RFC 8375 (Special-Use Domain 'home.arpa.'), which replaces legacy ad-hoc domains like .local or .lan. The current behavior makes the device list difficult to read for users adhering to this standard.

Am I willing to test this? ๐Ÿงช

  • [x] I will do my best to test this feature on the netlertx-dev image when requested within 48h and report bugs to help deliver a great user experience for everyone and not to break existing installations.

Can I help implement this? ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

  • [ ] Yes
  • [x] No

ps1noob avatar Jan 03 '26 13:01 ps1noob