support DNS resolution for *bind_addr* #859
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#859
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I currently use NixOS with Garage and i was having issues with using my tailscale hostname as the address which I later resolved by hardcoding the IP address in each host but it would be amazing if there was some sort of mechanism to automatically resolve the IP address so I can dynamically add more hosts and simply reference them through that, easing the burden of needing to manually add each IP address.
This is my current approach
but it would be ideal if i could just do
with DNS enabled
But wouldn't the host name of the local machine also resolve to a bunch of other addresses, including
127.0.0.1
and::1
?More generally, the resolution method used in Garage is the basic DNS resolution from Tokio (see here) which gives a list of addresses, but we need to select a single address to bind to. How do we chose it?
heck I didn't even think about that
would it be possible to set a DNS resolver to keep it at one address?doesn't seem like tokio provides such an option from a quick glance
You can set
rpc_addr
to[::]
(or::
I don't remeber) and it will automatically listen on all interfaces on both IP versions. Then you can completely removerpc_public_addr
from your configuration. And finally put the IP address you want when doinggarage node connect xxxx@xxx:3901
. If it happens that you change the IP addresses of your node one by one, Garage will automatically discover and update the new IP addresses (as the node that has a new IP address will try to contact the other nodes that still have the same IP address, and upon contact, this new IP address will be learnt and broadcasted).Could this set of feature satisfy your requirements?
sounds good! thank u
rpc_public_addr_subnet
seemed to be what I wanted! I just added the tailscale network prefix and restarted it and it seems to work as I wanted it to! thank you!!