rapid7 / rex-socket

The Rex Socket Abstraction Library
Other
12 stars 33 forks source link

Fix/is name underscores #66

Closed zeroSteiner closed 5 months ago

zeroSteiner commented 5 months ago

Per RFC 2181, DNS names can contain underscores. Since the .is_name? class method is intended to inspect the value and tell if it's value for resolution, it should allow underscores in the labels.

Included a test to show that the legitimate case of _ldap._tcp.msflab.local now works as intended.