-
-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
PTR resolution not support set individual zonefiles for subnets like /25, which is defined by RFC2371(Classless IN-ADDR.ARPA delegation) and support by Bind9
for example: I want to manage PTR RR of IP in 192.168.1.0/25 with individual zonefile, but i cannot get PTR result with dig -x 192.168.1.10, dig -x 192.168.1.128 is ok
zonefile config like below
parent zonefile
$ORIGIN 1.168.192.in-addr.arpa.
$TTL 86400
@ IN SOA ns1.example.com. admin.example.com. (
2023082001 ; Serial
3600 ; Refresh
1800 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
@ IN NS ns1.example.com.
@ IN NS ns2.example.com.
128 IN PTR host128.example.com.
; delegation subnet 192.168.1.0/25 to subzone
0/25 IN NS ns1.subnet.example.com.
sub-zone zonefile
$ORIGIN 0/25.1.168.192.in-addr.arpa.
$TTL 86400
@ IN SOA ns1.subnet.example.com. admin.subnet.example.com. (
2023082001 ; Serial
3600 ; Refresh
1800 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
; 配置PTR记录
10 IN PTR host10.subnet.example.com.
11 IN PTR host11.subnet.example.com.
Metadata
Metadata
Assignees
Labels
No labels