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

FQDN Validation: FQDNs with fourth-level domain aren't considered valid #180

Closed
handymenny opened this issue Dec 21, 2021 · 0 comments
Closed
Assignees
Labels
accepted Issue is confirmed and will be worked on bug Confirmed bug or unexpected behavior fixed-in-next-release Issue has already been fixed in the next release

Comments

@handymenny
Copy link

handymenny commented Dec 21, 2021

Bug Description

If I sumbit an FQDN with a fourth-level domain, hyperglass responds with this error: 'XXX is not a valid Traceroute target'.

An example of valid domains that trigger this error are:

  • ec2-18-194-0-252.eu-central-1.compute.amazonaws.com
  • r3.sn-fpoq-o52l.googlevideo.com

Expected behavior

hyperglass should consider these domains valid and proceed with DNS resolution

Possible Solution

Replace fqdnPattern regex with:
/^(?!:\/\/)([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-][a-zA-Z0-9-]+\.[a-zA-Z-]{2,6}?$/im

@handymenny handymenny added the possible-bug Something isn't working label Dec 21, 2021
@handymenny handymenny changed the title FQDN Validation: FQDNs with fourth-level domain (or higher) aren't considered valid FQDN Validation: FQDNs with fourth-level domain aren't considered valid Dec 21, 2021
@thatmattlove thatmattlove added accepted Issue is confirmed and will be worked on bug Confirmed bug or unexpected behavior fixed-in-next-release Issue has already been fixed in the next release and removed possible-bug Something isn't working labels Dec 23, 2021
@thatmattlove thatmattlove self-assigned this Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue is confirmed and will be worked on bug Confirmed bug or unexpected behavior fixed-in-next-release Issue has already been fixed in the next release
Projects
None yet
Development

No branches or pull requests

2 participants