Skip to main content

Problems addressed

Unrestricted DNS resolution reaches malicious or abused domains before HTTP policy applies. SOC teams need an early, loggable block at resolution when threat feeds supply DNS-style indicators.

Outcomes operators expect

  • Block or template-block domains that return configured DNSBL codes before TCP to origin.
  • Evidence in Security Logs and reports for audit—see Verify below.

Advantages vs URL-only filtering

DNSBL fails closed earlier in the chain for list-based domain risk; URL and content rules still apply for paths, categories, and payloads. Comparative vendor efficacy: Missing (in-repo).

Acquire, deploy, use

Complete Prerequisites, configure Real-time content security → DNS Blacklist as below, then run block tests and log checks.

Why use DNS Blacklisting?

Unrestricted DNS resolution allows clients to reach domains listed as malicious in threat feeds. DNSBL blocks these connections at the resolution layer-before any traffic is exchanged-reducing exposure to malware, phishing, and botnet callbacks.

Prerequisites

  • SafeSquid SWG installed and operational.
  • SafeSquid configured as the primary DNS resolver (see Supporting Services: BIND).
  • A valid DNSBL service domain (e.g., in.dnsbl.org or a private threat intel list).
  • Outbound network access to the DNSBL service.

Configure DNSBL in Real-time content security

  1. Access the SafeSquid User Interface.
  2. Open the Configure page.
  3. Go to Real-time content security.
Go to Real time content security Configure page and Real-time content security
  1. Open the DNS Blacklist section.
DNS blacklist section DNS blacklist configuration options DNS blacklist domain and blocked IPs DNS blacklist global settings
  1. Set Global options:
    • Enabled: TRUE to enable DNSBL; FALSE to skip querying blacklist services.
    • Template: Name of the block template displayed when a domain is blocked. Leave blank for default “blocked” message.
    • Domain: DNSBL service domain for queries (e.g., in.dnsbl.org). SafeSquid appends this to queried domains: example.com.in.dnsbl.org.
    • Blocked IP addresses: Comma-separated IP ranges that trigger a block when returned by the DNSBL (e.g., 127.0.0.1-127.0.0.6 for in.dnsbl.org).
:::tip DNSBL Service Compatibility Administrators can use any DNS-based blacklist service (e.g., Spamhaus, local threat feed). Configure the Domain and Blocked IP addresses fields to match your service’s return codes. :::

Understanding Return IP Codes (in.dnsbl.org)

When SafeSquid queries in.dnsbl.org, the service returns specific IP addresses indicating threat categories: Configuration: To block all categories, set Blocked IP addresses to 127.0.0.1-127.0.0.8.
  1. Save. SafeSquid caches DNSBL query results for efficiency.

Example: block sites via DNSBL server

Use blacklisting domain in.dnsbl.org and blocked IP addresses 127.0.0.1-127.0.0.6. SafeSquid blocks all matching domains and displays the blocked template. Use DNSBL when a SOC provides the list or when many domains must be blocked. DNSBL example configuration

Verify configuration and blocked requests

  • Interface: Confirm DNS Blacklist is enabled, Domain and Blocked IP addresses are set, and Template is correct.
  • Block test: Request a domain known to be listed; expect block page and no connection to origin.
  • Logs: In Security Logs, confirm entries for blocked requests (action/result indicating DNSBL block).
  • Audit: Run a report filtered by block reason or DNSBL; export for evidence that the control is active and blocking malicious domains.

Troubleshooting

Still having issues? Contact SafeSquid support with:
  • DNSBL service domain you’re using
  • Sample blocked domain query results
  • Contents of /var/log/safesquid/safesquid.log showing DNS resolution attempts

Source register

Next steps