Giter Club home page Giter Club logo

open-dns-resolver's Introduction

open DNS resolver

An open recursive DNS Resolver is a DNS server that has been opened up to answer DNS queries from any computer system on the Internet. If configured incorrectly, these servers can be exploited to unwittingly participate in malicious activities.

DNS amplification attack

This is an image

DNS query types

  • DNS Recursive query
  • DNS Non-recursive query
  • DNS Iterative query

DNS Open-resolvers can be abused for DDoS reflection attacks against third parties.

Verification

$ dig +short jetamooz.com @x.x.x.x

note : Substitue x.x.x.x with the IP address of the DNS resolver (target).

if you get response then your target is vulnerable. if you do not set response or get request time out then target is safe!

online check target

Solution

  • Disable recursion or limit recursion to trusted clients in the DNS server's configuration.

  • BIND: Secure BIND Template

Secure Bind by adding ACLs, and permitting it in named.conf options 

acl "trust" { localhost; 10.100.100.0/24; 2001:ffff:ffff:ffff::/64; };

options {
        ...
        allow-query { trust; };
        allow-query-cache { trust; };
        ...
}


Secure Unbound by adding access-control statements in unbound.conf server block

server:
        access-control: 0.0.0.0/0 refuse
        access-control: 10.100.100.0/24 allow
        access-control:2001:ffff:ffff:ffff::/64 allow
        ...
  • Microsoft Windows: Disable Recursion on the DNS Server

references

open-dns-resolver's People

Contributors

kh4sh3i avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cereallkiller

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.