<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot Resolve FQDN to hostname from the API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228273#M8761</link>
    <description>&lt;P&gt;"hosts" in this case refer to host objects in SmartConsole.&lt;BR /&gt;These objects only have a single IPv4 and/or a single IPv6 address associated with it.&lt;BR /&gt;It is not possible to add FDQNs or multiple IPs to a host object.&lt;/P&gt;
&lt;P&gt;add-domain is specific to a Multi-Domain environment and refers to the management (not FQDN) domains.&lt;BR /&gt;If you want to create an object for an FDQN in a rule, you need to create a domain object (add-dns-domain with is-sub-domain false):&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-dns-domain~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-dns-domain~v1.9.1%20&lt;/A&gt;&lt;BR /&gt;When FDQN objects exist in the active policy, the gateway will periodically resolve these FDQN objects to IP addresses.&lt;/P&gt;
&lt;P&gt;Whether you use host objects, FQDN objects, or a combination of the two, you can add them to a group object as desired.&lt;/P&gt;
&lt;P&gt;Another approach, which doesn't necessarily involve the API, is to use a &lt;A href="https://sc1.checkpoint.com/documents/R81.20/WebAdminGuides/EN/CP_R81.20_SecurityManagement_AdminGuide/Content/Topics-SECMG/Network_Feed.htm" target="_self"&gt;Network Feed object&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2024 19:13:16 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2024-09-27T19:13:16Z</dc:date>
    <item>
      <title>Cannot Resolve FQDN to hostname from the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228263#M8760</link>
      <description>&lt;P&gt;I am creating a process the takes hosts and automatically adds them to a group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the hosts come in, I receive the FQDN, without the IP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I want to look up the host by FQDN using the show-hosts endpoint, I can't get anything to resolve. I would really like to add all my FQDNs to the host. Right now, show-host only shows the IP, hostname(current hostname is the IP), and domain.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read about using domain objects, but every time I try to show-domain, whether through UID or name, it tells me it doesn't exist. Its the&amp;nbsp;SMC User domain and everything is under it. It definitely exists. When I show-domains, I receive an empty return. I also tried global-domain, but that was empty. The only thing that comes back the the show-dns-domains, which all say they are under the&amp;nbsp;SMC User domain.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way, or what would be the best way to correlate the FQDN and IP through the API? I know its done in the SmartConsole, I just don't understand why I wouldn't be able to do it in the API.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 17:23:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228263#M8760</guid>
      <dc:creator>sayala</dc:creator>
      <dc:date>2024-09-27T17:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Resolve FQDN to hostname from the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228273#M8761</link>
      <description>&lt;P&gt;"hosts" in this case refer to host objects in SmartConsole.&lt;BR /&gt;These objects only have a single IPv4 and/or a single IPv6 address associated with it.&lt;BR /&gt;It is not possible to add FDQNs or multiple IPs to a host object.&lt;/P&gt;
&lt;P&gt;add-domain is specific to a Multi-Domain environment and refers to the management (not FQDN) domains.&lt;BR /&gt;If you want to create an object for an FDQN in a rule, you need to create a domain object (add-dns-domain with is-sub-domain false):&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-dns-domain~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-dns-domain~v1.9.1%20&lt;/A&gt;&lt;BR /&gt;When FDQN objects exist in the active policy, the gateway will periodically resolve these FDQN objects to IP addresses.&lt;/P&gt;
&lt;P&gt;Whether you use host objects, FQDN objects, or a combination of the two, you can add them to a group object as desired.&lt;/P&gt;
&lt;P&gt;Another approach, which doesn't necessarily involve the API, is to use a &lt;A href="https://sc1.checkpoint.com/documents/R81.20/WebAdminGuides/EN/CP_R81.20_SecurityManagement_AdminGuide/Content/Topics-SECMG/Network_Feed.htm" target="_self"&gt;Network Feed object&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 19:13:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228273#M8761</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-09-27T19:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Resolve FQDN to hostname from the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228482#M8764</link>
      <description>&lt;P&gt;Thank you, this is very helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to clarify, if everything is on the&amp;nbsp;&lt;SPAN&gt;SMC User&amp;nbsp;domain, would I create a new DNS Domain called&amp;nbsp;SMC User, mark sub-domain as false, and the objects will sync over? Or would I need to create a new domain with a different name?&lt;BR /&gt;How would I know if the&amp;nbsp;FDQN objects exist in the active policy? If I can resolve the IP on the console, does that mean it should be in there?&amp;nbsp;&lt;BR /&gt;Sorry for the additional questions - just always like to be sure about things before changing firewall rules.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 14:21:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228482#M8764</guid>
      <dc:creator>sayala</dc:creator>
      <dc:date>2024-09-30T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Resolve FQDN to hostname from the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228497#M8767</link>
      <description>&lt;P&gt;"SMC User" is not a valid name for a DNS Domain object.&lt;BR /&gt;It needs to be something of the format ".example.com" (with the leading period) like so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/27921i82FE35115C8C3586/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note the icon for the object type.&lt;BR /&gt;You can review the active Access Policy to see if you can find objects with this icon.&lt;BR /&gt;To see if any domains are in the active policy installed on the gateway, run the following on the gateway: domains_tool -report (see&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk161632" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk161632&lt;/A&gt;)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ability for the gateway to resolve the specific FQDN to an IP address is a necessary condition for a Domain Object to work.&lt;BR /&gt;Your clients and gateway should use the same DNS servers to ensure the correct IPs are allowed.&lt;BR /&gt;If the gateway can resolve a specific FDQN, it doesn't mean it's used in the active policy.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also for DNS Passive Learning:&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk161612" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk161612&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 15:10:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Cannot-Resolve-FQDN-to-hostname-from-the-API/m-p/228497#M8767</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-09-30T15:10:52Z</dc:date>
    </item>
  </channel>
</rss>

