/
IPAM CLI interface

IPAM CLI interface

Overview


The IPAM CLI is a command-line tool for managing IP address assignments and performing reverse DNS operations.

 

Usage


Run the CLI from your installation admin directory. For example:

$> php /home/hostbill/public_html/admin/cli.php ipam rdns <operation> [options]

 

Available Operations (Required):

  1. defaultptr

    • Retrieves a list of unassigned IPs without PTR.

    • Sets default PTR records for all unused/unassigned IP addresses.

  2. pullrdns

    • Fetches current PTR records from the configured DNS server.

    • Updates related IPAM entries to ensure the IPAM table remains up to date.

    • Works with HostBill DNS modules (e.g., PowerDNS), allowing customers to manage PTR records from the client area and staff members to manage them from the IPAM UI.

  3. pushrdns

    • Pushes PTR records from IPAM to the configured DNS server.

    • Ensures that the DNS server reflects the current PTR records configured within IPAM.

    • Works with HostBill DNS modules to facilitate seamless synchronization.

Available Options (Optional):

  • --subnet_id=<id>: Process a specific subnet ID.

  • --ip_limit=<limit>: Set a limit on the number of IPs processed.

 

Example Commands


  1. Set default PTR records:

$> php /home/hostbill/public_html/admin/cli.php ipam rdns defaultptr --subnet_id=123
  1. Pull reverse DNS records:

$> php /home/hostbill/public_html/admin/cli.php ipam rdns pullrdns --ip_limit=50
  1. Push reverse DNS records:

$> php /home/hostbill/public_html/admin/cli.php ipam rdns pushrdns

Related content