Skip to content

Allow dot character in service names #20

Open
@santo-codes

Description

@santo-codes

Is your feature request related to a problem? Please describe.
Currently queries of the form <name>.service.<domain> are supported. <name> values cannot have the dot character. Services in our project tend to have the dot character. Can it be supported please?

Describe the solution you'd like
Solution is simple. SERVICE_NAME_REGEX in DnsQueryHandler needs minor change. Add \\. in the first capturing group. I.e.

private static final String SERVICE_NAME_REGEX = "^_?([\\w\\-\\.]+)\\.(?:_\\w+\\.)?(?:service|connect)\\.";

Describe alternatives you've considered
None.

Additional context
None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions