That got it added but still doesn’t seem to be doing the address resolution.
I also tried adding the options
bind-interfaces
localise-queries
I tried stopping/starting the container but that didn’t seem to have any effect either.
not sure if this is relevant or not, but tried running dig from both the host and the container to try to compare things.
From the host:
root@incushost:~# dig specialserver
; <<>> DiG 9.18.28-1~deb12u2-Debian <<>> specialserver
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 31091
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;specialserver. IN A
;; AUTHORITY SECTION:
. 2836 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2024080900 1800 900 604800 86400
;; Query time: 0 msec
;; SERVER: 1.2.3.2#53(1.2.3.2) (UDP)
;; WHEN: Fri Aug 09 11:43:57 UTC 2024
;; MSG SIZE rcvd: 123
incus exec mycontainer /bin/bash
root@mycontainer:~# dig specialserver
; <<>> DiG 9.18.28-1~deb12u2-Debian <<>> specialserver
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 37566
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;specialserver. IN A
;; Query time: 3992 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Fri Aug 09 07:46:11 EDT 2024
;; MSG SIZE rcvd: 48
I don’t think the container has a firewall running or anything (iptables/ufw commands return a not found message from the command line) and I am using the default debian/bookworm/cloud image.
On the host, I have iptables set to allow all in/out from any address for troubleshooting things.