<div dir="ltr"><div>Hello,</div><div><br></div><div>Here or there, you can read configuration files named like db.192.168.42 when holding data for a <a href="http://192.168.42.0/24">192.168.42.0/24</a> network.</div><div>For networks with a /24 mask, simply striping  ending 0/24 substring from <a href="http://192.168.42.0/24">192.168.42.0/24</a> is enough.</div><div>But what about network with a different prefix ?</div><div><br></div><div>1. How can you compute this "db.192.168.whatever" from 192.168.x.y/z network address ?</div><div>Example in Python would be appreciated.</div><div><br></div><div>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 ?</div><div><br></div><div>Best regards<br></div></div>