domains_tool

Description

When using Domain objects in the policy, you might want to know the IP addresses to which the Domain object is resolved on the Security Gateway (and kept in the cache). You might also want to know to which Domain objects a specific IP address is related.

Domains and IP addresses are mapped on the Security Gateway using Domains and cache tables. These tables contain information about the attachments between Domains used in the policy and their IP addresses.

This command shows the information about IP addresses and Domain objects. It also includes an option to see the Domains of an Updatable Object used in the policy.

For more information, see sk161632.

Important:

  • You must run this command in the Expert mode.

  • In a Cluster, all the Cluster Members must be configured in the same way.

  • On Scalable Platforms (Maestro and Chassis), you must connect to the applicable Security Group.

Syntax

domains_tool

      -d <Domain Name> [-m]

      -dx <Domain Name>

      -efo <Name of External Feed Object>

      -hc

      -ip <IP Address>

      -md <Domain Name 1> ... <Domain Name N>

      -o <Domain Name>

      -report

            [-extended]

            [-not_extended]

      -report ip <IP Address> [<Number of Hours>]

      -uo <Name of Updatable Object>

Parameters

Step

Instructions

No Parameter

Shows the built-in help.

-d <Domain Name> [-m]

Shows a list of IP addresses for one specified domain name.

  • The optional parameter "-m" performs the search in the entire cache table instead of searching in chunks.

  • You must specify the domain name in lowercase letters.

  • This applies only when the Domain objects / Updatable Objects are used in the rule base. Otherwise, domains and cache tables are empty.

  • This command may return "ERROR" when no Domain Objects or Updatable Objects (with Domains) are found in the policy.

Example:

domains_tool -d www.example.com

-dx <Domain Name>

Shows a list of IP addresses for the specified domain name that will be used for translation in the NAT rulebase. See sk167194.

You must specify the domain name in lowercase letters.

Example:

domains_tool -dx www.example.com

-efo <Name of External Feed Object>

Shows a list of Domains that the specified External Network Feed contains.

Example:

domains_tool -efo MyExternalFeed

-hc

Shows the status of the Health Check test:

  • Health-Check status is NOK

    To see the details, refer to the "-report" parameter.

  • Health-Check status is OK

-ip <IP Address>

Shows a list of Domains for the specified IP address.

This command may return "ERROR" when no Domain Objects or Updatable Objects (with Domains) are found in the policy.

Example:

domains_tool -ip 192.168.33.44

-md <Domain Name 1> ... <Domain Name N>

Shows a list of IP addresses for multiple specified domain names (separated by a space).

You must specify the domain names in lowercase letters.

Example:

domains_tool www.example1.com www.example2.com

-o <Domain Name>

Shows a list of objects that contain the specified domain name.

Example:

domains_tool -o www.example.com

-report [{-not_extended | -extended}]

Runs a policy test and shows the report for Domain objects / Updatable Objects.

The command asks you whether you wish to run an extended test.

You can specify manually which test to run:

  • domains_tool -report -not_extended

    Runs a regular test.

  • domains_tool -report -extended

    Runs an extended test.

Warning - The extended test runs the TCPdump tool for 60 seconds on all interfaces to capture the DNS traffic (port 53). This can create additional load on the CPU.

-report ip <IP Address> [<Number of Hours>]

Runs a test and shows the report for matching of the specified IP Address in the last specified number of hours (default is 2 hours).

Example:

domains_tool -report ip 192.168.3.57

-uo <Name of Updatable Object>

Shows a list of domains that the specified Updatable Object contains.

This command shows only the domains of an Updatable Object when it is used in the policy.

Example:

domains_tool -uo "Dropbox Services"

Examples