[GH-ISSUE #127] Match by IP Prefix/24 or /32 #377

Open
opened 2026-03-13 14:48:49 +03:00 by kerem · 3 comments
Owner

Originally created by @praveenkumar2608 on GitHub (Jun 15, 2021).
Original GitHub issue: https://github.com/abh/geodns/issues/127

Hi Team

I am unsuccessful in getting domain resolved by matching IP address or IP prefix. I think it is supported. Could you please give me some example config for the same.

Originally created by @praveenkumar2608 on GitHub (Jun 15, 2021). Original GitHub issue: https://github.com/abh/geodns/issues/127 Hi Team I am unsuccessful in getting domain resolved by matching IP address or IP prefix. I think it is supported. Could you please give me some example config for the same.
Author
Owner

@praveenkumar2608 commented on GitHub (Jun 22, 2021):

@abh

<!-- gh-comment-id:865501113 --> @praveenkumar2608 commented on GitHub (Jun 22, 2021): @abh
Author
Owner

@abh commented on GitHub (Jun 22, 2021):

Yeah, that really should be documented!

For a /32, use "[98.248.0.1]” (no quotes, but square brackets).

and for a /24 use "[98.248.0.0]” — basically if the last octet is a 0 then the code will match the whole /24.

Other CIDR masks aren’t supported.

The same for IPv6; except the /24 equivalent is a /48.

<!-- gh-comment-id:865505657 --> @abh commented on GitHub (Jun 22, 2021): Yeah, that really should be documented! For a /32, use "[98.248.0.1]” (no quotes, but square brackets). and for a /24 use "[98.248.0.0]” — basically if the last octet is a 0 then the code will match the whole /24. Other CIDR masks aren’t supported. The same for IPv6; except the /24 equivalent is a /48.
Author
Owner

@praveenkumar2608 commented on GitHub (Jul 2, 2021):

@abh Thank you very much, it works. I would love to see DNSSEC support. Any forecast on this feature.

<!-- gh-comment-id:872973875 --> @praveenkumar2608 commented on GitHub (Jul 2, 2021): @abh Thank you very much, it works. I would love to see DNSSEC support. Any forecast on this feature.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/geodns#377
No description provided.