Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Ale_G
Participant

DNS Forwarding only for specific domain

Hello everyone,
Hardware: Spark 1535
Version: R82


I plan to use this firewall as the DNS server for the entire managed network.
I need to configure DNS forwarding only for one specific domain: file.core.windows.net.

google.com -> resolved by the DNS servers configured on the firewall
a.file.core.windows.net → forwarded for resolution to a different DNS server

For this type of appliance I have seen that there isn't way to configure DNS forwarding.

Is there another way to do that?

I tried to follow the article below, but it didn’t work in my case. Am I missing something?

Solved: DNS forwarding for internal domain - Check Point CheckMates

Many thanks,

Alessandro

0 Kudos
4 Replies
PhoneBoy
Admin
Admin

Considering the platform includes dnsmasq, which can absolutely perform this task, it should be possible.
That said I don't have access to an R82-based unit to confirm if the process in that thread will work.
It might be possible with some manual configuration applied to /pfrm2.0/etc/dnsmasq.conf.

0 Kudos
Ale_G
Participant

I tried using the script from the article, but it didn’t work.

#!/bin/sh
kill -9 $(cat /var/run/dnsmasq.pid)
DOMAIN=$(cat /etc/resolv.conf | grep search | awk {'print $2'})
if [ -z "$DOMAIN" ]; then
/pfrm2.0/bin/dnsmasq -y -x /var/run/dnsmasq.pid -h -H /var/hosts -c 0\
 --server=/file.core.windows.net/172.10.11.12
else
/pfrm2.0/bin/dnsmasq -y -x /var/run/dnsmasq.pid -h -H /var/hosts -c 0 -E --domain=#\
 --server=/file.core.windows.net/172.10.11.12
fi
unset DOMAIN

 Regarding the dnsmasq.conf file, could we try adding the following line?

server=/file.core.windows.net/172.10.11.12
0 Kudos
PhoneBoy
Admin
Admin

That looks about right.
Not sure if dnsmasq.conf is preserved with firmware upgrades or not (or even a reboot).

0 Kudos
Ale_G
Participant

From what I understand, the userScript file is executed at every appliance boot, so even if the dnsmasq.conf file is not preserved, the script should take care of fixing it. However, it still doesn’t work. I tried both from a client and from the tool integrated in the Gaia GUI, and it keeps going to the DNS servers configured on the appliance instead of the one configured in the configuration file

2026-04-21_083209.png2026-04-21_083734.png

 

 

 

 

 

 

When executing the script manually, no errors are reported, which suggests that the root cause is likely elsewhere. I will continue with further testing and analysis.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events