Issue Details

Number
26484
Title
Error: Cannot resolve -bind address: 'bitcoind:8334=onion'
Description
<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! --> <!-- Describe the issue --> In my quest to finally fix #25094, I figured I need to bind the onion listen port explicitly to the external interface (`bitcoind`), not to "all interfaces" (`[::]`). So I'm using the argument ``` -bind=bitcoind:${BITCOIND_TOR_PORT}=onion ``` `/etc/hostname` is set to `bitcoind` and the `hostname` command yields the expected result. Also, both `nslookup` and `ping` can resolve the hostname to the external IP. Note: I cannot use the numerical IP, because Docker assigns IP addresses dynamically on each invocation. **Expected behavior** I'd expect bitcoind to also resolve the hostname to my external IP, just like ping and nslookup do. <!--- What behavior did you expect? --> **Actual behavior** <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? --> In short, it dies. ``` bitcoind_1 | Error: Cannot resolve -bind address: 'bitcoind:8334=onion' bitcoind_1 | Shutdown: In progress... bitcoind_1 | Error: Cannot resolve -bind address: 'bitcoind:8334=onion' bitcoind_1 | Shutdown: done ``` **System information** bitcoind 24.0rc4 (self built), Docker+Compose from Ubuntu 22.04.1. <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? --> <!-- What type of machine are you observing the error on (OS/CPU and disk type)? --> <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? --> <!-- Any extra information that might be useful in the debugging process. --> <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->
URL
https://github.com/bitcoin/bitcoin/issue/26484
Closed by
Back to List