[ixpmanager] Unbound zone files

Jay Hanke jayhanke at southfront.io
Mon Mar 30 14:28:26 IST 2020


That worked great. I was missing modifying the VIEW_SKIN in the .env file.

In case there is interest, here is the code for an unbound zone file:

#
# This file contains DNS reverse lookup records for customers VLAN interfaces
#
# WARNING: this file is automatically generated using the
# api/v4/dns/arpa API call to IXP Manager. Any local changes made to
# this script will be lost.
#
# VLAN id: <?= $t->vlan->getId() ?>; tag: <?= $t->vlan->getNumber()
?>; name: <?= $t->vlan->getName() ?>.
#
# Generated: <?= date( 'Y-m-d H:i:s' ) . "\n" ?>
#
server:
<?php foreach( $t->arpa as $a ): ?>
     local-data-ptr: "<?= trim($a['address']) ?> <?= trim($a['hostname']) ?>."
<?php endforeach; ?>

# END

On Mon, Mar 30, 2020 at 3:43 AM Barry O'Donovan <barry.odonovan at inex.ie> wrote:
>
> Hi Jay,
>
> Jay Hanke wrote on 29/03/2020 17:26:
> > I'm working on a template to create v4/v6 reverse zone files for an
> > unbound server.
> >
> > I followed the instructions at
> > https://docs.ixpmanager.org/features/dns-arpa/ using the myskin and
> > mytemplate1 for testing.
> >
> > What URL would that show up as when I go to pull the file?
>
> https://ixp.example.com/api/v4/dns/arpa/2/4/mytemplate1
>
>
> So, if you .env has:
>
> VIEW_SKIN="myskin"
>
> and you:
>
> cd $IXPROOT/resources
> mkdir -p skins/myskin/api/v4/dns
> cp views/api/v4/dns/bind.foil.php
> skins/myskin/api/v4/dns/mytemplate1.foil.php
>
> Then the above will work just fine.
>
>   - Barry
>
>
>


-- 
Jay Hanke, President
South Front Networks
jayhanke at southfront.io
Phone  612-204-0000


More information about the ixpmanager mailing list