All Projects → ekristen → Dns Proxy

ekristen / Dns Proxy

Licence: mit
Simple DNS Proxy written in Node.JS. Override hosts, domains, or tlds. Redirect certain domains to different nameservers.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Dns Proxy

Roguesploit
Powerfull Wi-Fi trap!
Stars: ✭ 262 (+58.79%)
Mutual labels:  dns, dnsmasq
ansible-dnsmasq
Ansible role to set up Dnsmasq in Debian-like systems
Stars: ✭ 18 (-89.09%)
Mutual labels:  dns, dnsmasq
Dnsmasqweb
基于DNSmasq的DNS解析、以及DHCP地址分配系统
Stars: ✭ 166 (+0.61%)
Mutual labels:  dns, dnsmasq
Elk Hole
elasticsearch, logstash and kibana configuration for pi-hole visualiziation
Stars: ✭ 136 (-17.58%)
Mutual labels:  dns, dnsmasq
Glider
glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
Stars: ✭ 1,710 (+936.36%)
Mutual labels:  dns, dnsmasq
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: ✭ 724 (+338.79%)
Mutual labels:  dns, dnsmasq
udm-host-records
Scripts to list, add, update, and remove host records in the Ubiquiti UniFI Dream Machine DNS forwarder.
Stars: ✭ 109 (-33.94%)
Mutual labels:  dns, dnsmasq
Devdns
Automagic Docker DNS for local development
Stars: ✭ 99 (-40%)
Mutual labels:  dns, dnsmasq
Hosts Blocklists
Automatically updated, moderated and optimized lists for blocking ads, trackers, malware and other garbage
Stars: ✭ 1,749 (+960%)
Mutual labels:  dns, dnsmasq
Sysuv6 Dns
May be the best DNS in SYSU.
Stars: ✭ 142 (-13.94%)
Mutual labels:  dns, dnsmasq
Dnsmorph
Domain name permutation engine written in Go
Stars: ✭ 148 (-10.3%)
Mutual labels:  dns
Shuttle
A web proxy in Golang with amazing features.
Stars: ✭ 1,857 (+1025.45%)
Mutual labels:  dns
Nictool
NicTool: a DNS management solution
Stars: ✭ 159 (-3.64%)
Mutual labels:  dns
Powershell ipv4networkscanner
Powerful asynchronus IPv4 network scanner for PowerShell
Stars: ✭ 161 (-2.42%)
Mutual labels:  dns
Simplednscrypt
A simple management tool for dnscrypt-proxy
Stars: ✭ 1,901 (+1052.12%)
Mutual labels:  dns
Dnsbin
The request.bin of DNS request
Stars: ✭ 157 (-4.85%)
Mutual labels:  dns
Unbound Docker
Unbound DNS Server Docker Image
Stars: ✭ 147 (-10.91%)
Mutual labels:  dns
Passer
Passive service locator, a python sniffer that identifies servers, clients, names and much more
Stars: ✭ 144 (-12.73%)
Mutual labels:  dns
Nemetric
前端性能指标的监控,采集以及上报。用于测量第一个dom生成的时间(FP/FCP/LCP)、用户最早可操作时间(fid|tti)和组件的生命周期性能,,网络状况以及资源大小等等。向监控后台报告实际用户测量值。
Stars: ✭ 145 (-12.12%)
Mutual labels:  dns
Dnstrace
DNS resolution tracing tool
Stars: ✭ 165 (+0%)
Mutual labels:  dns

CircleCI npm npm David David

DNS Proxy

Simple DNS Proxy written in Node.JS

Designed to allow you to override hosts or domains with specific answers or override tlds, or domains to use different nameservers. Useful when using VPN connections with split DNS setups.

This app makes use of the rc module for configuration, the default configuration is below, use any file location to override the defaults. Appname is dnsproxy when creating a configuration file.

I can guarentee this app isn't perfect but fulfills my current needs for routing certain domains to private IP name servers when on VPN.

Install

Grab a binary from the release section.

OLD METHOD

npm install -g dns-proxy

Features

  • Override nameservers for TLD
  • Override nameservers for Domain
  • Set IP for entire domain or TLD. (example: if you want to answer 192.168.11.1 for local.dev)
  • Set IP for host
  • Wildcard Support

Examples

For nameserver overrides if an answer isn't received by a threshold (350ms by default) DNS proxy will fallback to one of the default nameservers provided in the configuration (by default 8.8.8.8 or 8.8.4.4)

TLD Specific Nameserver

This will send all .com queries to 8.8.8.8 and .dk queries to 127.0.0.1 and custom port 54.

"servers": {
  "com": "8.8.8.8",
  "dk": "127.0.0.1:54"
}
  • This is a snippet that will go into your rc config file.

Domain Specific Nameserver

This will match all google.com and its subdomains.

"servers": {
  "google.com": "8.8.8.8"
}
  • This is a snippet that will go into your rc config file.

Domain Specific Answers

This will match all of google.com and its subdomains and return 127.0.0.1 as the answer. This technically doens't even have to be a real domain or a full domain, if you configure ogle.com and do a lookup on google.com, the ogle.com will match.

"domains": {
  "google.com": "127.0.0.1"
}

Wildcard Domain Specific Answers

this will resolve review-someotherstring.google.com to 127.0.0.1

"domains": {
  "review-*.google.com": "127.0.0.1"
}

Aliases

Domains and Hosts support aliases now, whereby you can define a host like normal such as "hi": "127.0.0.1" and in another entry reference it like "hello": "hi".

Default Configuration

This is the default configuration in the application, you should override this by creating the proper rc file in one of the searchable paths.

{
  port: 53,
  host: '127.0.0.1',
  logging: 'dns-proxy:query',
  nameservers: [
    '8.8.8.8',
    '8.8.4.4'
  ],
  servers: {},
  domains: {
    'dev': '127.0.0.1'
  },
  hosts: {
    'devlocal': '127.0.0.1'
  }
}
  • Note this snippet is JavaScript and rc config file format is JSON.

Logging

Logging is handled by the simple lightweight debug package. By default all queries are logged. To change the logging output update the logging variable to any of the following: dns-proxy:error, dns-proxy:query, dns-proxy:debug. You can specify all or none, separate using a comma, a wildcard can be used as well.

Running as a Service

OSX

You can copy the resources/launchd.plist file into /Library/LaunchDaemons as com.github.ekristen.dns-proxy.plist. To start just run sudo launchctl load /Library/LaunchDaemons/com.github.ekristen.dns-proxy.plist. This will also make the dns-proxy service to start on boot.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].