brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: curl --resolve tests a new server before the DNS points to it

Network and access
~/tips/tip-curl-resolve

curl -I --resolve example.com:443:203.0.113.10 https://example.com/

Makes curl send a request for a hostname to an IP address you choose, ignoring DNS.

You moved a site and want to see the new server answer before you change the DNS record.

curl -I --resolve example.com:443:203.0.113.10 https://example.com/

The request goes to the IP you gave, but curl still uses example.com for the Host header and the certificate check. That is the whole point: you test the real site name on the new machine. The address above is a documentation example, put your own server in there.

Further reading: curl documentation: –resolve

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link