Re: [Pdns-users] Find best zone for given record

2023-02-03 Thread William Edwards via Pdns-users
For future readers: I believe the relevant function is `dim.models.dns.Zone._candidates`. Thanks Thomas! Thomas Mieslinger via Pdns-users schreef op 2023-02-03 08:54: Hi William, DIM (https://github.com/1and1/dim) implements this "find most specific zone" for forward and reverse zones. It auto

Re: [Pdns-users] Find best zone for given record

2023-02-02 Thread Thomas Mieslinger via Pdns-users
Hi William, DIM (https://github.com/1and1/dim) implements this "find most specific zone" for forward and reverse zones. It automatically moves records when you create a more specific zone. Cheers Thomas On 2/2/23 17:25, William Edwards via Pdns-users wrote: Hi, Is anyone aware of an existing

[Pdns-users] Find best zone for given record

2023-02-02 Thread William Edwards via Pdns-users
Hi, Is anyone aware of an existing Python/PHP library/function that finds the 'best' zone for a given record? For example, the following PTR records and DNS zones would be matched correctly: - DNS zone '80.10.in-addr.arpa.' - DNS zone '40.10.in-addr.arpa.' - PTR record '20.1.80.10.in-addr.a