Securedns Hostcheck
Endpoints Summary
GET
/securedns_hostcheck/
Swagger ↗
The SecureDNS Host Check API provides real-time hostname filtering
capabilities forand parental controland content filtering systems.capabilities. This endpoint allows you to verify whether access to specific hostnames should be allowed, refused, or ignored based on your configured securityrulespolicies andpolicies.content filtering rules.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The SecureDNS Host Check API is designed for organizations and service providers who need to implementimplementing DNS-levelbased content filtering and parental controls.control systems. This service acts as a real-time decision engine that evaluates hostname requestshostnames against your configured security policies and returns appropriate actions.actions based on category classifications, access control lists (ACLs), and subnet-specific rules.
Key Features:
- Real-time hostname evaluation against security policies
CategorizedCategory-based content filteringwith(malware,customizableadultACLcontent, social media, etc.)
Common Integration Scenarios:
- DNS
resolversresolverimplementingintegrationparentalforcontrolsenterprise networks
The API usesreturns astructured simpleresponses request-responseindicating patternwhether whererequests youshould submitbe aallowed hostnamethrough, forredirected evaluationto andwarning receivepages, anor actionblocked directiveentirely, along with supportingperformance metadata such as matched rules, categories,metrics and redirectcaching information.
Endpoints
GET /securedns_hostcheck/
Description: EvaluatesPerforms real-time evaluation of a hostname against your configured SecureDNS policiespolicies. The endpoint checks the requested hostname against category filters, access control lists, and subnet-specific rules to determine ifthe accessappropriate shouldaction. beAll allowed,requests refused,are orlogged ignored.for This endpoint performs real-time policy matchingauditing and returnsreporting detailed information about the decision including matched categories, ACL rules, and any redirect instructions.purposes.
Use Cases:
- DNS resolver
checkingintegrationiftoafilterdomainmaliciousshouldorbeinappropriateblocked before resolutioncontent NetworkReal-timegatewaycontentvalidatingfiltering for corporate networks
Full URL Example:
https://control.zequenze.com/api/v1/securedns_hostcheck/?hostname=example.com&client_ip=192.168.1.100&subnet=192.168.1.0/24
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| hostname | string | query | Yes | The hostname or domain to check against SecureDNS policies |
| client_ip | string | query | ||
| string | query | No |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/securedns_hostcheck/?hostname=social-media.com&client_ip=192.168.10.0.1.100"50&subnet=10.0.1.0/24" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response (Allowed):
[
{
"action": "A",
"redirect_ip": "0.0.0.0",
"match_subnet": "192.168.10.0.1.0/24",
"uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"category": "news"business",
"acl": "allow_news_sites"corporate_allow",
"cached": true,
"response_time": 0.04512.5
}
]
Example Response (Blocked):
[
{
"action": "R",
"redirect_ip": "10.203.0.0.1"113.10",
"match_subnet": "192.168.1.0/24",
"uuid": "a1b2c3d4-58cc-4372-a567-0e02b2c3d480"550e8400-e29b-41d4-a716-446655440000",
"category": "adult_content",
"acl": "block_adult_family_policy"family_safe",
"cached": false,
"response_time": 0.0328.3
}
]
Response Fields:
| Field | Type | Description |
|---|---|---|
| action | string | Action to take: "A" (Allow), "R" ( |
| redirect_ip | string | IP address to redirect blocked requests to (0.0.0.0 |
| match_subnet | string | |
| uuid | string | Unique identifier |
| category | string | Content category |
| acl | string | |
| cached | boolean | Whether this response was served from cache |
| response_time | number |
Response Codes:
| Status | Description |
|---|---|
| 200 | Rule matched and request allowed - |
| 401 | Request not authorized - |
| 403 | Request |
| 404 | No rule matched |
Common Use Cases
Use Case 1: DNS Resolver Integration
Integrate the SecureDNS checkingAPI into ayour DNS resolver to provideautomatically parentalfilter controls.malicious Beforedomains and inappropriate content. Query each hostname before resolving anyDNS hostname,requests queryand either allow resolution or redirect to a block page based on the API to determine if the request should proceed, be blocked, or redirected to a safe page.response.
Use Case 2: CorporateParental NetworkControl FilteringRouter
Implement enterprisefamily-safe contentinternet filtering by checking all outbound web requests againstthrough corporatethe acceptableAPI. useConfigure policies.different Blockpolicies for children's devices versus adult devices using subnet-based rules and redirect blocked content to age-appropriate explanations.
Use Case 3: Corporate Network Security
Protect enterprise networks by filtering access to social media, streaming,streaming services, or othermalware non-work-related categoriesdomains during business hours.
Use Case 3: Educational Institution Safety
Schools and universities can use thisthe API to ensureenforce studentsacceptable accessuse only educationalpolicies and age-appropriatemaintain content,productivity blockingwhile adultensuring content,security gaming sites, and other distracting categories.compliance.
Use Case 4: ISPEducational FamilyInstitution PlansFiltering
InternetDeploy service providers can offer family-safe internet packages by routing DNS requests through thiscontent filtering service,for automaticallyschool blockingnetworks to block inappropriate content forwhile subscribers.allowing educational resources. Implement time-based restrictions and category-specific filtering based on different areas of the campus network.
Use Case 5: HomeSecurity NetworkAppliance ProtectionIntegration
HomeEmbed routerthe firmwareSecureDNS cancheck integrateinto thisnetwork APIsecurity devices to provide parentsan additional layer of threat protection. Combine with easy-to-configureother contentsecurity filteringfeeds withoutto requiringcreate technicalcomprehensive expertiseprotection inagainst DNSemerging configuration.threats and malicious domains.
Best Practices
Performance Optimization:
CacheresponsesImplementlocallyResponsewhenCaching: Use thecachedfieldistotrueimplement your own local caching layer for frequently requested hostnames to reduce API calls and improve response times-
Handle All Response Codes: Implement
connectionproperpoolingerror handling for different HTTP status codes, especially distinguishing between 403 (blocked) andkeep-alive404 (no rule matched) responses
response_time field to uuid values for Erroraudit Handling:
Security Considerations:
Integration Tips:
policy_id