Ranges in names (NAPTRs)

View: New views
3 Messages — Rating Filter:   Alert me  

Ranges in names (NAPTRs)

by bcrawfo2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Using PDNS for enum and a lot of our DIDs are provided to us in non-wildcardable format.   Example:
+1-654-2030---2089
This causes me to put in entries for 203*, 204*, 205*, 206*, 207*, 208*
I've actually written logic to generate the entries/wildcards that make up any given range, however if I ever need to update the next-hop for this range, I take the chance that I miss some.

It would be nice to be able to do
*.[3-8].0.2.4.5.6.1
So I only had to update one (or fewer entries).  

Things get a little dicier if my range is 2024-2087, but I could cut it down from 19 to 3 entries.
Using known/conventional techniques I'd come up with:
+2024
+2025
+2026
+2027
+2028
+2029
+203x
+204x
+205x
+206x
+207x
+2080
+2081
+2082
+2083
+2084
+2085
+2086
+2087
Instead of the more optimal:
+202[4-9]
+20[3-7]*
+208[0-7]

I saw a similar request in the archive back from 2005, but it didn't get far.   I figured a few years later, we could retest the water.

Thanks for any ideas/input.

Re: Ranges in names (NAPTRs)

by evilbunny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

bcrawfo2 wrote:

> I saw a similar request in the archive back from 2005, but it didn't get
> far.   I figured a few years later, we could retest the water.

I ended up expanding the results before injecting them in the database,
hdd space is cheaper than CPU and it doesn't make sense to expand things
on the fly if you want quick look ups etc.


--

Best regards,
 Duane

http://www.freeauth.org - Enterprise Two Factor Authentication
http://www.nodedb.com - Think globally, network locally
http://www.sydneywireless.com - Telecommunications Freedom
http://e164.org - Global Communication for the 21st Century

"In the long run the pessimist may be proved right,
    but the optimist has a better time on the trip."



_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

signature.asc (204 bytes) Download Attachment

Re: Ranges in names (NAPTRs)

by bcrawfo2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Duane.

I didn't have much hope...but thought I'd ask.
I like the ability to know how ranges were added as a block (and probably delete them).   Guess my GUI could add a field to each record about what the range was....so I could delete or update the whole range.