Thanks to visit codestin.com
Credit goes to github.com

Skip to content

plugin/etcd: query domain zone return all A records of the zone #3861

@JrCs

Description

@JrCs

What happened:
I have configured external-dns to use coredns with etcd backend.
When query the zone, coredns reply with all A records of the zone

What you expected to happen:
I was expected to receive no A record.

How to reproduce it (as minimally and precisely as possible):
My CoreFile:

dns://myzone.example.com:53 {
    errors
    log . {
        class all
    }
    health
    ready
    etcd {
        endpoint http://etcd:2379
    }
}
# IP 10.206.207.242 is the IP of the coredns
$ dig myzone.example.com @10.206.207.242

; <<>> DiG 9.11.11-RedHat-9.11.11-1.fc30 <<>> myzone.example.com @10.206.207.242
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45847
;; flags: qr aa rd; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;myzone.example.com.              IN      A

;; ANSWER SECTION:
myzone.example.com.       300     IN      A       10.206.203.156
myzone.example.com.       300     IN      A       10.206.207.242
myzone.example.com.       300     IN      A       10.206.207.250
myzone.example.com.       300     IN      A       172.31.4.8
myzone.example.com.       300     IN      A       172.31.3.196
myzone.example.com.       300     IN      A       172.31.1.4
myzone.example.com.       300     IN      A       172.31.2.61
myzone.example.com.       300     IN      A       172.31.3.72

;; Query time: 143 msec
;; SERVER: 10.206.207.242#53(10.206.207.242)
;; WHEN: lun. avril 27 15:01:20 CEST 2020
;; MSG SIZE  rcvd: 301

Environment:

  • the version of CoreDNS: 1.6.9
  • Corefile: see above
  • OS (e.g: cat /etc/os-release):
NAME="Container Linux by CoreOS"
ID=coreos
VERSION=2191.5.0
VERSION_ID=2191.5.0
BUILD_ID=2019-09-04-0357
PRETTY_NAME="Container Linux by CoreOS 2191.5.0 (Rhyolite)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://issues.coreos.com"
COREOS_BOARD="amd64-usr"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions