Giter VIP home page Giter VIP logo

coredns's Issues

https

There is a https/acme let's encrypt implementation in the code, the only use would prolly be DNS over TLS; this needs to happen (i.e. implemented)

middleware: file: deleting from the tree is wonky

Deleting stuff works, but you have to be careful when something is an empty non terminal, because then the node must be kept. Think the right check will soon be in place but I don't fully trust it yet. Needs more tests as well

middleware: file: uses RR for lookups

For looksups in the tree we use a dns.RR, but we only use the name and type wasting the rest of the header. We should just use qname and qtype for all lookups

graceful restart broke

Haven't tested it, but I am pretty sure graceful restart does work anymore. We need
a) tests if this is the case
b) fix it

middleware: resolver

Diff. than a proxy. A middleware to implements a full recursive (dnssec) resolver.

standard compliant errors on EDNS0

Support NSID (middleware thingy?)

And correctly return an EDNS0 error when we don't understand the OPT RR. Google for some ravings of marka on this subject.

malformed msg and wrong class

% dig @x64.atoom.net -p 1053 miek.nl A CH                                                                                            ~
;; Warning: Message parser reports malformed message packet.

; <<>> DiG 9.8.3-P1 <<>> @x64.atoom.net -p 1053 miek.nl A CH
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34243
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;miek.nl.           CH  A

;; AUTHORITY SECTION:
miek.nl.        1800    IN  SOA linode.atoom.net. miek.miek.nl. 1459743181 14400 3600 604800 14400

;; Query time: 34 msec
;; SERVER: 2a01:7e00::f03c:91ff:fef1:6735#1053(2a01:7e00::f03c:91ff:fef1:6735)
;; WHEN: Mon Apr  4 11:32:50 2016
;; MSG SIZE  rcvd: 82

Should not answer in the IN class, and dig should not complain about the message...

middleware: slaving zones

Figure out how to implement and use a slave zone middleware that retrieves zones over AXFR, IXFR or rsync?

middleware: fix rewrite complex rules

Right now only simple rules are implemented in middleware/rewrite/*, look at complex rules and what they can add.
SimpleRules at the moment only rewrite qtypes.

use context.Context in the middleware

Add an extra parameters: ctx which will be a context.Context{} for communicating between middleware, i.e. a caching middleware reports a cache miss and the prometheus middleware can then report it by examining what's in the context.

Means remaining the current context.go Context to something else.

xfr logs different size

When doing an xfr it logs:

127.0.0.1 - [28/Mar/2016:16:03:02 +0100] "AXFR miek.nl. tcp" NOERROR 821
127.0.0.1 - [28/Mar/2016:16:03:03 +0100] "AXFR miek.nl. tcp" NOERROR 917

Dig says 917 is the correct number of octets, there is no difference in the dig out. No clue....

middleware comms via context.Context

With the added param of context.Context in the middleware we can communicate between them. The first use-case for this would be: monitoring.

I.e. middleware proxy sets some vars in the context and the prometheus middleware picks this up from the context and sets the vars. This way we can get middleware monitoring without meddling with prometheus outside of the prometheus middleware.

This needs a key naming policy, i.e. middleware/proxy/counter-name

middleware/file: abstract backend away

Basically do the same thing as in SkyDNS and abstract away the access to the datasource. This will probably mean renaming the file to ... data? or something.

It would be something like this:

type Backend interface {
    Insert(rr dns.RR)
    Delete(rr dns.RR)
    Get(rr dns.RR) *Elem
    Len() int
    Next(rr dns.RR) *Elem // for nsec
    Prev(rr dns.RR) *Elem
// nsec3 foo as well? Or just give up on that?
}

And Elem is defined as:

type Elem struct {
    m map[uint16][]dns.RR
}

And also has some methods on it.

add common testing package

add testing subdir in middleware and factor out some common test infrastructure, newA and friends, and checking for the returned sections.

coreDNS's middleware is diff. than caddy

The middleware in caddy sets the return code to something else than 0 and then the error handler takes over.

With DNS this is more tricky because some responses require state (NXDOMAIN) and cannot be handled by a generic error handler.

Need to clarify when, and when not the middleware has written to the client and how errors middleware can help here.

IsDomainName

There are few checks (right now) if a name that is used is a proper domain name, i.e. names like
.miek.nl when used in the config will be deemed OK.

Needs fixing.

middleware: dnssec

So, a signing middleware could be implemented. Question becomes what about the keys...
Should the middleware also intercept queries for DNSKEY/RRSIG and friends? Proobaaablly 'yes', but I am not sure at this point if that will work.

Filed bug to put ideas in.

http.FileSystem

http.FileSystem is half used, half not used. It's a nice abstraction for finding (zone) files, maybe we should just use it.

Make it possible to run CoreDNS as my dns server

Dogfood time! I want to run CoreDNS as my DNS server. For this it needs to be able:

  • Server DNS requests from db files (#5)
  • Do DNSSEC query resolution
  • Be able to slave zones (#8)
  • Listen and send notifies, prolly related to (#8)

Dedup and round_robin middleware

In SkyDNS I have to dedup message and correct the order, i.e. CNAMEs before A records and other fluff. This can of course be also handled as a middleware.

See #9 for etcd implementation.

middleware: proxy

Fix proxy to work with all the features.

I'll probable leave adding EDNS0 "headers" out of the picture.

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.