# "An internal error has occurred" error when connecting to SmartConsole with DNS name

## Product
**Security Management**  
**Version** R80.40 (EOS), R81 (EOS), R81.10 (EOS), R81.20  
**Last Modified** 2023-08-14

## Symptoms
- "An internal error has occurred" error when connecting to SmartConsole with DNS name.
- In the file _$FWDIR/log/cpm.elg_ you can find logs that show the log-in request fails when it is looking for a domain with the name of the DNS server (in this example, the DNS name is ux-1):  
  
  ```
  [DATE TIME] ERROR coresvc.internal.LoginSvcImpl [qtp-39232058-290]: Failed to find domain for ux-1

[DATE TIME] ERROR infrastructure.logging.DefaultExceptionLoggerHandlerImpl [qtp-39232058-290]: incident [1c5b56ed-3c2e-4fa1-a1c3-cca3e40f0eaa]:
  java.lang.IllegalArgumentException: key is null
  ```
- The issue started after installing R81.10 Jumbo HFA take 79.

## Cause
The Security Management server searches the DNS host in the _/etc/hosts_ file and receives a null answer when it tries to change the domain name to IP.

## Solution
This problem was fixed. The fix is included in:
- [Jumbo Hotfix Accumulator for R81.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/Default.htm) starting from Take 26
- [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 110
- [Jumbo Hotfix Accumulator for R81](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm) starting from Take 87
- [Jumbo Hotfix Accumulator for R80.40](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm) starting from Take 198

If you choose not to upgrade, as a **workaround**, you can add the management IP as host with the same name of the DNS server. Run the command in Clish:

```  
> add host name <DNS-name> ipv4-address <MGMT-IP>
```

#### NOTE
This solution has been verified for the specific scenario, described by the combination of Product, Version and Symptoms. It may not work in other scenarios.

## Article Properties
**Access Level** General  
**Status** Approved by TAC  
**Date Created** 2023-01-17  
**Last Modified** 2023-08-14
