Hi, I’m experimenting with fly.io as an authoritative DNS platform. I’m running nsd with a standalone configuration. After my server starts, it’s reachable over TCP (e.g. with dig +tcp @myserver) but not UDP. If I connect to the console with SSH and use dig against localhost and the IP everything works as expected.
Hi! Thanks so much for the reply. I have the ip-address sections commented out, the defaults should be to bind to all local interfaces. It looks like this:
# uncomment to specify specific interfaces to bind (default are the
# wildcard interfaces 0.0.0.0 and ::0).
# For servers with multiple IP addresses, list them one by one,
# or the source address of replies could be wrong.
# Use ip-transparent to be able to list addresses that turn on later.
# ip-address: 1.2.3.4
# ip-address: 1.2.3.4@5678
# ip-address: 12fe::8ef0
# Allow binding to non local addresses. Default no.
#ip-transparent: yes
# Allow binding to addresses that are down. Default no.
#ip-freebind: no
# use the reuseport socket option for performance. Default no.
#reuseport: yes
# enable debug mode, does not fork daemon process into the background.
debug-mode: no
# listen on IPv4 connections
do-ip4: yes
# listen on IPv6 connections
do-ip6: yes
# port to answer queries on. default is 53.
port: 53
Aha, I didn’t think to check /etc/hosts… I tried telling it to bind to fly-global-services and it said it was an unknown address, I’ll see what I can find in /etc/hosts.
# Number of NSD servers to fork. Put the number of CPUs to use here.
#server-count: 2
# uncomment to specify specific interfaces to bind (default are the
# wildcard interfaces 0.0.0.0 and ::0).
# For servers with multiple IP addresses, list them one by one,
# or the source address of replies could be wrong.
# Use ip-transparent to be able to list addresses that turn on later.
# ip-address: 1.2.3.4
# ip-address: 1.2.3.4@5678
# ip-address: 12fe::8ef0
ip-address: 172.19.1.139
ip-address: ::
# Allow binding to non local addresses. Default no.
ip-transparent: yes
# Allow binding to addresses that are down. Default no.
#ip-freebind: no
# use the reuseport socket option for performance. Default no.
reuseport: yes
# enable debug mode, does not fork daemon process into the background.
debug-mode: no
# listen on IPv4 connections
do-ip4: yes
# listen on IPv6 connections
do-ip6: yes
# port to answer queries on. default is 53.
port: 53
127.0.0.1 localhost localhost.localdomain
::1 localhost localhost.localdomain
127.0.0.1 localhost localhost4
::1 localhost localhost6
# Address used for global traffic routing
172.19.9.187 fly-global-services
# Address in the 6PN private network for this app
fdaa:0:4d3d:a7b:85:6fd1:1352:2 6fd11352.vm.k-flydns.internal 6fd11352 fly-local-6pn