Re: How to compute db.192.168.x names from network addresses ?
On 01.10.20 17:46, Olivier wrote:
>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 ?
2317 Classless IN-ADDR.ARPA delegation. H. Eidnes, G. de Groot, P. Vixie.
March 1998. (Format: TXT=17744 bytes) (Also BCP0020) (Status: BEST
CURRENT PRACTICE) (DOI: 10.17487/RFC2317)
>1. How can you compute this "db.192.168.whatever" from 192.168.x.y/z
>network address ?
better set up reverse zones 192.168.0, 192.168.1 etc.
the RFC above should be only used for <24 ranges.
>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 ?
it's just a file name. You can use "myrevzone" as long, but using
db.192.168.42 is much more explanatory.