5 ms·
Why the extra `echo` and subshell $(...) ? dig... | tr... works fine without it. also, `dig -4 ... ` to get your IPv4 address, for us dual-stacked folks. Othe
by luckman212 5y ago
Why the extra `echo` and subshell $(...) ?
dig... | tr... works fine without it.
also, `dig -4 ... ` to get your IPv4 address, for us dual-stacked folks. Otherwise it returns your V6 address by default.
- andrewmcwatters 5y agoYes, I pulled it out of a shell script which had more concatenated to it and didn’t bother cleaning it up.