Análisis DNS
La consulta se evalúa antes de que el dispositivo continúe hacia el destino solicitado.
DNS-IPcom analiza la etapa de resolución DNS y ayuda a bloquear destinos identificados como maliciosos o restringidos antes de que se establezca una comunicación útil con ellos.

Una explicación audiovisual de la consulta DNS, el análisis preventivo, las amenazas, la complementariedad con firewall y la protección para redes ISP.
DNS-IPcom utiliza inteligencia de amenazas y políticas DNS para reducir la exposición a destinos conocidos por actividad maliciosa o restringida.
La consulta se evalúa antes de que el dispositivo continúe hacia el destino solicitado.
Integra múltiples fuentes y categorías para identificar dominios e indicadores asociados con abuso.
La política reside en el resolver y extiende cobertura a múltiples tipos de dispositivos sin instalar software en cada equipo.
DNS-IPcom y el firewall cumplen funciones diferentes y complementarias. El DNS puede detener la resolución hacia destinos identificados antes de la conexión; el firewall continúa inspeccionando y controlando el tráfico de red según sus políticas.


DNS-IPcom incorpora listados y políticas operativas asociadas a solicitudes de bloqueo aplicables a ISP en Colombia, facilitando su administración desde la capa DNS.
Perfil orientativo para redes de aproximadamente 1.000 a 2.000 clientes. Configura DNS-IPcom, fuerza DNS tradicional TCP/UDP 53 y aplica controles para DoT y DoQ.

DNS1: 181.224.222.80 · DNS2: 181.224.222.90
# DNS-IPcom - Script 1 v1.0 - MikroTik RouterOS v7
# IPcom Sistemas S.A.S.
# Perfil aproximado: 1.000 a 2.000 clientes
# DNS1 181.224.222.80 | DNS2 181.224.222.90
# Requisitos: Interface Lists LAN y WAN correctamente configuradas.
# DoH sobre HTTPS/443 NO se bloquea con este script.
# Realice backup/export y revise el orden de reglas antes de produccion.
:if ([:len [/interface list find where name="LAN"]] = 0) do={ :error "DNS-IPcom: ERROR - No existe Interface List LAN" }
:if ([:len [/interface list find where name="WAN"]] = 0) do={ :error "DNS-IPcom: ERROR - No existe Interface List WAN" }
/ip dns set servers=181.224.222.80,181.224.222.90 allow-remote-requests=yes max-udp-packet-size=4096 query-server-timeout=2s query-total-timeout=10s max-concurrent-queries=2000 max-concurrent-tcp-sessions=200 cache-size=131072KiB cache-max-ttl=1d address-list-extra-time=0s
:if ([:len [/ip firewall address-list find where list="DNS-IPcom_permitidos" address="181.224.222.80"]] = 0) do={ /ip firewall address-list add list=DNS-IPcom_permitidos address=181.224.222.80 comment="DNS-IPcom 01 - DNS1 autorizado" }
:if ([:len [/ip firewall address-list find where list="DNS-IPcom_permitidos" address="181.224.222.90"]] = 0) do={ /ip firewall address-list add list=DNS-IPcom_permitidos address=181.224.222.90 comment="DNS-IPcom 02 - DNS2 autorizado" }
:if ([:len [/ip firewall raw find where comment="DNS-IPcom 03 - Bloquear DNS UDP desde WAN"]] = 0) do={ /ip firewall raw add chain=prerouting action=drop protocol=udp in-interface-list=WAN dst-address-type=local dst-port=53 comment="DNS-IPcom 03 - Bloquear DNS UDP desde WAN" }
:if ([:len [/ip firewall raw find where comment="DNS-IPcom 04 - Bloquear DNS TCP desde WAN"]] = 0) do={ /ip firewall raw add chain=prerouting action=drop protocol=tcp in-interface-list=WAN dst-address-type=local dst-port=53 comment="DNS-IPcom 04 - Bloquear DNS TCP desde WAN" }
# Estas excepciones NAT deben quedar antes de las reglas REDIRECT.
:if ([:len [/ip firewall nat find where comment="DNS-IPcom 05 - Permitir DNS-IPcom UDP"]] = 0) do={ /ip firewall nat add chain=dstnat action=accept protocol=udp in-interface-list=LAN dst-address-list=DNS-IPcom_permitidos dst-port=53 comment="DNS-IPcom 05 - Permitir DNS-IPcom UDP" }
:if ([:len [/ip firewall nat find where comment="DNS-IPcom 06 - Permitir DNS-IPcom TCP"]] = 0) do={ /ip firewall nat add chain=dstnat action=accept protocol=tcp in-interface-list=LAN dst-address-list=DNS-IPcom_permitidos dst-port=53 comment="DNS-IPcom 06 - Permitir DNS-IPcom TCP" }
:if ([:len [/ip firewall nat find where comment="DNS-IPcom 07 - Forzar DNS UDP desde LAN"]] = 0) do={ /ip firewall nat add chain=dstnat action=redirect protocol=udp in-interface-list=LAN dst-port=53 to-ports=53 comment="DNS-IPcom 07 - Forzar DNS UDP desde LAN" }
:if ([:len [/ip firewall nat find where comment="DNS-IPcom 08 - Forzar DNS TCP desde LAN"]] = 0) do={ /ip firewall nat add chain=dstnat action=redirect protocol=tcp in-interface-list=LAN dst-port=53 to-ports=53 comment="DNS-IPcom 08 - Forzar DNS TCP desde LAN" }
# Deben quedar antes de cualquier DROP final de INPUT.
:if ([:len [/ip firewall filter find where comment="DNS-IPcom 09 - Permitir DNS UDP desde LAN"]] = 0) do={ /ip firewall filter add chain=input action=accept protocol=udp in-interface-list=LAN dst-port=53 comment="DNS-IPcom 09 - Permitir DNS UDP desde LAN" }
:if ([:len [/ip firewall filter find where comment="DNS-IPcom 10 - Permitir DNS TCP desde LAN"]] = 0) do={ /ip firewall filter add chain=input action=accept protocol=tcp in-interface-list=LAN dst-port=53 comment="DNS-IPcom 10 - Permitir DNS TCP desde LAN" }
# Deben quedar antes de cualquier ACCEPT general LAN -> WAN.
:if ([:len [/ip firewall filter find where comment="DNS-IPcom 11 - Bloquear DoT TCP853"]] = 0) do={ /ip firewall filter add chain=forward action=drop protocol=tcp in-interface-list=LAN out-interface-list=WAN dst-port=853 comment="DNS-IPcom 11 - Bloquear DoT TCP853" }
:if ([:len [/ip firewall filter find where comment="DNS-IPcom 12 - Bloquear DoQ UDP853"]] = 0) do={ /ip firewall filter add chain=forward action=drop protocol=udp in-interface-list=LAN out-interface-list=WAN dst-port=853 comment="DNS-IPcom 12 - Bloquear DoQ UDP853" }
:foreach i in=[/ip dhcp-client find] do={ /ip dhcp-client set $i use-peer-dns=no }
:put "============================================================"
:put " DNS-IPcom - Script 1 v1.0 instalado"
:put " DNS1: 181.224.222.80 | DNS2: 181.224.222.90"
:put " DNS TCP/UDP 53: redireccionado"
:put " DoT TCP/853: bloqueado | DoQ UDP/853: bloqueado"
:put " DoH HTTPS/443: NO bloqueado"
:put " IMPORTANTE: verifique el orden de RAW, NAT, INPUT y FORWARD"
:put "============================================================"
/ip dns print /ip firewall raw print stats where comment~"DNS-IPcom" /ip firewall nat print stats where comment~"DNS-IPcom" /ip firewall filter print stats where comment~"DNS-IPcom" /ip firewall address-list print where list="DNS-IPcom_permitidos"
Documentación preparada para desplegar, validar, diagnosticar y revertir de forma segura la política DNS en MikroTik RouterOS.
Redirección y control de DNS en MikroTik RouterOS. Incluye arquitectura, interface lists, DNS permitidos, redirección UDP/TCP 53, DoT, RAW/FILTER, PMTU/PPPoE, DoH, pruebas, diagnóstico y checklist.
Material gráfico para comprender el flujo de protección, las amenazas y el papel del DNS dentro de una arquitectura de seguridad.




Le ayudamos a validar interfaces, DNS autorizados, orden de reglas, DoT, pruebas y puesta en producción.