Forum Discussion

ims_243721's avatar
ims_243721
Icon for Nimbostratus rankNimbostratus
Dec 17, 2016

Create PTR record for subnet

Hello, Am running version 12.1 and trying to create PTR record same as bind but it fail

 

Subnet: 192.168.1.1 records needed from 192.168.1.1 to 192.168.1.200 PTR => host-192.168.1.1.mycompany.com

 

Is it possible ?

 

using bind i could do this by using $GENERATE 1-200 $ PTR xxxx

 

1 Reply

  • FMA's avatar
    FMA
    Icon for Nimbostratus rankNimbostratus

    Hi, You can try to do this using a script with zrsh:

    !/bin/bash
    
    for i in {1..200}
    do
        echo "addRR external 1.168.192.in-addr.arpa. $i.1.168.192.in-addr.arpa. 500 PTR host-192.168.1.$i.mycompany.com." | zrsh
    done