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

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


Hello,

Here or there, you can read configuration files named like db.192.168.42
when holding data for a 192.168.42.0/24 network.
For networks with a /24 mask, simply striping  ending 0/24 substring from
192.168.42.0/24 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.192.168.42.0". I didn't notice any issue. Did I overlooked something ?

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20201001/f7c72c12/attachment.htm>


More information about the bind-users mailing list