> Source: [sk148733](https://support.checkpoint.com/results/sk/sk148733)

# sk148733 - "ERROR: Duplicate keys <XXXXXXXX> in table 'dns_server_rules'" after policy push

| Property | Value |
|----------|-------|
| Solution ID | sk148733 |
| Date Created | 2019-03-12 |
| Last Modified | 2026-03-01 |
| Technical Level | Advanced |
| Products | Other |
| Versions | Not Version-Specific |
| OS | Gaia |

## Symptoms

- * When the user tries to push policy, the following error(s) is/are received:   

  ```
  
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/conf/WAN_Network_Block_Rulebase_simp.pf", line 434: ERROR: Duplicate keys  in table 'dns_server_rules'****
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/crypt.def", line 240: ERROR: unknown macro or function 
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/crypt.def", line 252: ERROR: unknown macro or function 
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/base.def", line 688: ERROR: unknown macro or function 
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/base.def", line 741: ERROR: unknown macro or function 
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/base.def", line 772: ERROR: unknown macro or function 
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/base.def", line 783: ERROR: unknown macro or function 
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/proxy.def", line 43: ERROR: unknown macro or function 
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/conf/WAN_Network_Block_Rulebase_simp.pf", line 286071: ERROR: unknown macro or function 
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/conf/WAN_Network_Block_Rulebase_simp.pf", line 434: ERROR: Duplicate keys <9f0cc502> in table 'dns_server_rules'
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/base.def", line 511: ERROR: table  undefined
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/base.def", line 539: ERROR: syntax error
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/base.def", line 557: ERROR: syntax error
  "/opt/CPmds-R80/customers/AMS-DC-MA/CPR77CMP-R80/lib/base.def", line 619: ERROR: unknown macro or function spii_record_conn_match
  ```

* The user might also see this or a similar error message (the value in XXXXXXX is a hexadecimal value:

  ```
  
  ERROR: Duplicate keys XXXXXXX in table 'dns_server_rules'
  ```

## Cause

There are duplicate objects with the same IP addresses and the DNS server option ticked. These are applied to a rule and/or object.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
