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

2020-10-01 Thread Matus UHLAR - fantomas

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 ?


RFC
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.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Windows 2000: 640 MB ought to be enough for anybody
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


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

2020-10-01 Thread Olivier
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
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users