Skip to content

Simple Esp32 DNS Hijack Server, packaged as ESP-IDF component

License

Notifications You must be signed in to change notification settings

abobija/esp-dns-hijack-srv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp-dns-hijack-srv

Esp32 DNS Hijack Server, packaged as ESP-IDF component.

This is simple DNS server that resolves all lookups to one IP address. Handy for use to open Captive Portal.

Demo

Esp32 DNS Hijacking

How to use

This directory is an ESP-IDF component. Clone it (or add it as submodule) into components directory of the project.

Example

In this example all requested domains will be forwarded to the IP address 192.168.4.1

ip4_addr_t resolve_ip;
inet_pton(AF_INET, "192.168.4.1", &resolve_ip);

if(dns_hijack_srv_start(resolve_ip) == ESP_OK) {
    ESP_LOGI(TAG, "DNS hijack server started");
} else {
    ESP_LOGE(TAG, "DNS hijack server has not started");
}

About

Simple Esp32 DNS Hijack Server, packaged as ESP-IDF component

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published