Skip to content

aa flag not set by authoritative nameserver when answering subdomain #21

Description

@pinheadmz

Need to look into this, not sure if this is correct or not.

I have a zone with origin localhost and A records for localhost and *.localhost (so this issue might be related to the wildcard)

root, aa flag is present

$ dig @127.0.0.1 localhost

; <<>> DiG 9.16.3 <<>> @127.0.0.1 localhost
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63489
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

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

;; ANSWER SECTION:
localhost.              21600   IN      A       127.0.0.1
*.localhost.            21600   IN      A       127.0.0.1

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Jul 05 18:06:51 EDT 2020
;; MSG SIZE  rcvd: 72

subdomain, aa flag missing

$ dig @127.0.0.1 a.localhost

; <<>> DiG 9.16.3 <<>> @127.0.0.1 a.localhost
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44155
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;a.localhost.                   IN      A

;; ANSWER SECTION:
a.localhost.            21600   IN      A       127.0.0.1

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Jul 05 18:06:56 EDT 2020
;; MSG SIZE  rcvd: 56

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions