How to compute db.192.168.x names from network addresses ?

Olivier oza.4h07 at
Thu Oct 1 15:46:29 UTC 2020


Here or there, you can read configuration files named like db.192.168.42
when holding data for a network.
For networks with a /24 mask, simply striping  ending 0/24 substring from is enough.
But what about network with a different prefix ?

1. How can you compute this "db.192.168.whatever" from 192.168.x.y/z
network address ?
Example in Python would be appreciated.

2. Instead of using short "db.192.168.42" names, I used a long
"db.". I didn't notice any issue. Did I overlooked something ?

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the bind-users mailing list