Okay, you’ll need to take care because you’re editing system files that require root access.
SSH into your truenas server, or open a shell from the System menu in the webUI, whichever works for you.
Using sudo, edit /etc/hosts with the text editor of your choice (vi, nano, whatever). E.g.
sudo vi /etc/hosts
At the bottom of the hosts file you’ll see a line like this:
# STATIC ENTRIES
Below that line, create a new one that looks like this, substituting in whatever IP address you want to use for update.ixsystems.com. E.g. I could use the IP address that seems to be returned from DNS servers in The Americas with the following:
136.0.77.2 update.ixsystems.com
(Refer back to the results from https://dnschecker.org/#A/update.ixsystems.com to pick an IP address that’s close to you, and that you can ping)
Save the file, then try pinging update.ixsystems.com. You should see it using the IP address you just added to your hosts file.
NB.
- Any unix-like system will check it’s /etc/hosts file first when trying to resolve a hostname to an IP address. Entries in /etc/hosts will override anything in your local DNS or whatever DNS your router forwards to
- Entries in /etc/hosts only apply to that server/device, no other devices on your network will use that entry
- Only leave that static entry in for as long as you need it. If iX Systems make changes to their CDN infrastructure in the future, and that IP address is no longer active, you’ll lose access to updates
- the /etc/hosts file may get overwritten by TrueNAS system updates, I don’t know. Maybe worth checking after you run updates if you want it to persist