Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursion Available bit is not set in response header #204

Closed
xiaoyar opened this issue Aug 26, 2022 · 3 comments · Fixed by #206
Closed

Recursion Available bit is not set in response header #204

xiaoyar opened this issue Aug 26, 2022 · 3 comments · Fixed by #206

Comments

@xiaoyar
Copy link

xiaoyar commented Aug 26, 2022

Version of aardvark-dns

Name        : aardvark-dns
Version     : 1.0.2
Release     : 1.el8
Architecture: x86_64

Configuration

Dual stack network

{
  "name": "dual",
  "id": "2697203bf4180da9e7a6d074e38cbafb2fad4c8a3436522bde4ac573c059caa6",
  "driver": "bridge",
  "network_interface": "podman1",
  "created": "2022-08-24T04:03:37.236675178-05:00",
  "subnets": [
    {
      "subnet": "192.168.227.0/24",
      "gateway": "192.168.227.1"
    },
    {
      "subnet": "fdf8:192:168:227::/120",
      "gateway": "fdf8:192:168:227::1"
    }
  ],
  "ipv6_enabled": true,
  "internal": false,
  "dns_enabled": true,
  "ipam_options": {
    "driver": "host-local"
  }
}

Two containers, foo and bar, resolving bar from foo

[root@foo /]# cat /etc/resolv.conf
search dns.podman
nameserver 192.168.227.1
nameserver fdf8:192:168:227::1

Issue observed

nslookup complains "Got recursion not available from 192.168.227.1, trying next server"

[root@foo /]# nslookup bar
;; Got recursion not available from 192.168.227.1, trying next server
;; connection timed out; no servers could be reached

[root@foo /]#

dig also complains "WARNING: recursion requested but not available"

[root@foo /]# dig bar

; <<>> DiG 9.11.36-RedHat-9.11.36-3.el8 <<>> bar
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13400
;; flags: qr rd ad; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: b8dbf9748e7ba467 (echoed)
;; QUESTION SECTION:
;bar.				IN	A

;; ANSWER SECTION:
bar.			86400	IN	A	192.168.227.9
bar.			86400	IN	AAAA	fdf8:192:168:227::9
bar.			86400	IN	A	192.168.227.9
bar.			86400	IN	AAAA	fdf8:192:168:227::9

;; Query time: 0 msec
;; SERVER: 192.168.227.1#53(192.168.227.1)
;; WHEN: Fri Aug 26 10:23:45 UTC 2022
;; MSG SIZE  rcvd: 132

[root@foo /]#
flouthoc added a commit to flouthoc/aardvark-dns that referenced this issue Aug 26, 2022
Set recursion available in all response message by setting `RA` flag in
response packet.

Closes: containers#204

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc
Copy link
Collaborator

@xiaoyar Above PR #206 should close this.

flouthoc added a commit to flouthoc/aardvark-dns that referenced this issue Aug 29, 2022
Set recursion available message by setting `RA` flag in
response packet if `RD` in request is set.

Closes: containers#204

Signed-off-by: Aditya R <arajan@redhat.com>
flouthoc added a commit to flouthoc/aardvark-dns that referenced this issue Aug 30, 2022
Set recursion available message by setting `RA` flag in
response packet if `RD` in request is set.

Closes: containers#204

Signed-off-by: Aditya R <arajan@redhat.com>
flouthoc added a commit to flouthoc/aardvark-dns that referenced this issue Aug 31, 2022
Set recursion available message by setting `RA` flag in
response packet if `RD` in request is set.

Closes: containers#204

Signed-off-by: Aditya R <arajan@redhat.com>
@xiaoyar
Copy link
Author

xiaoyar commented Aug 31, 2022

@flouthoc I tried with manually applying above PR #206, the issue is not observed any more. Thanks for your quick fix.

[root@foo /]# nslookup bar
Server:		192.168.227.1
Address:	192.168.227.1#53

Non-authoritative answer:
Name:	bar.dns.podman
Address: 192.168.227.5
Name:	bar.dns.podman
Address: fdf8:192:168:227::5

[root@foo /]# dig bar

; <<>> DiG 9.11.36-RedHat-9.11.36-3.el8 <<>> bar
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6759
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: afd65f8137dff79d (echoed)
;; QUESTION SECTION:
;bar.				IN	A

;; ANSWER SECTION:
bar.			86400	IN	A	192.168.227.5

;; Query time: 0 msec
;; SERVER: 192.168.227.1#53(192.168.227.1)
;; WHEN: Wed Aug 31 11:58:56 UTC 2022
;; MSG SIZE  rcvd: 60

flouthoc added a commit to flouthoc/aardvark-dns that referenced this issue Sep 2, 2022
Set recursion available message by setting `RA` flag in
response packet if `RD` in request is set.

Closes: containers#204

Signed-off-by: Aditya R <arajan@redhat.com>
flouthoc added a commit to flouthoc/aardvark-dns that referenced this issue Sep 2, 2022
Set recursion available message by setting `RA` flag in
response packet if `RD` in request is set.

Closes: containers#204

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc
Copy link
Collaborator

flouthoc commented Sep 5, 2022

@xiaoyar Thanks for verifying this should be out in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants