- Products
- Learn
- Local User Groups
- Partners
- More
Check Point Jump-Start Online Training
Now Available on CheckMates for Beginners!
Why do Hackers Love IoT Devices so Much?
Join our TechTalk on Aug 17, at 5PM CET | 11AM EST
Welcome to Maestro Masters!
Talk to Masters, Engage with Masters, Be a Maestro Master!
ZTNA Buyer’s Guide
Zero Trust essentials for your most valuable assets
The SMB Cyber Master
Boost your knowledge on Quantum Spark SMB gateways!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
I'm using the API to create hosts for the first time.
add host name MYHOST ip-address 192.28.1.115 comments MY HOST
But how do I use the host-servers option to configure it as a dns-server
Ive tried:
add host name MYHOST ip-address 192.28.1.115 host-servers dns-server comments MY HOST
But this fails. I can't find any good examples anywhere.
Hi,
Based on the documentation, dns-server is a boolean value, that means True or False , host-servers dns-server "True" , try it like this.
Thanks for the reply....Tried that 😞 No luck.
Worked it out though....It's
add host host-servers.dns-server "true" name MYHOST ip-address 192.168.1.2 comments "this is my Host"
For reference, this JSON sent via an HTTP POST to /add-host would yield the same result:
{
"name": "MYHOST",
"ip-address": "192.168.1.2",
"comments": "this is my Host",
"host-servers": {
"dns-server": true
}
}
I add this because it's sometimes a little confusing going from the command line to JSON suitable for sending over the network.
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY