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

Wildcard support #4

Open
Reavershark opened this issue Nov 14, 2024 · 0 comments
Open

Wildcard support #4

Reavershark opened this issue Nov 14, 2024 · 0 comments

Comments

@Reavershark
Copy link

Queries that fail initially (test.example.org) should look for records of the same type that start with an asterisk (*.example.org).
Those are wildcard records.
If the tail of the query matches the part after the wildcard (example.org), the contents of the wildcard record should be returned.

Currently, multiple different things happen instead:

nsupdate> add *.jnms.user.zeus.gent 600 CNAME jnms.me
dig *.jnms.user.zeus.gent -t CNAME
 => *.jnms.user.zeus.gent. 600 IN CNAME jnms.me.
dig test.jnms.user.zeus.gent -t CNAME
 => No answer (should be "test.jnms.user.zeus.gent. 600 IN CNAME jnms.me.")
nsupdate> add *.jnms.user.zeus.gent 600 CNAME jnms.user.zeus.gent
dig *.jnms.user.zeus.gent -t CNAME
 => *.jnms.user.zeus.gent. 600 IN CNAME *.jnms.user.zeus.gent. (should be jnms.user.zeus.gent.)
nsupdate> add *.jnms.user.zeus.gent 600 CNAME notjnms.user.zeus.gent
dig *.jnms.user.zeus.gent -t CNAME)
 =>
;; Got bad packet: bad label type
105 bytes
ec b6 85 20 00 01 00 01 00 00 00 01 01 2a 04 6a          .............*.j
6e 6d 73 04 75 73 65 72 04 7a 65 75 73 04 67 65          nms.user.zeus.ge
6e 74 00 00 05 00 01 01 2a 04 6a 6e 6d 73 04 75          nt......*.jnms.u
73 65 72 04 7a 65 75 73 04 67 65 6e 74 00 00 05          ser.zeus.gent...
00 01 00 00 02 58 00 0a 07 6e 6f 74 6a 6e 6d 73          .....X...notjnms
c0 11 00 00 29 04 d0 00 00 00 00 00 0c 00 0a 00          ....)...........
08 a0 4e ad 8e c2 b3 fd 25                               ..N.....%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant