notes/technology/curl

curl: Modify DNS Resolution

Notes | 2021-08-08 (updated 2025-10-25) | 1 min read
#curl #productivity #sysadmin

You can intercept normal name resolution in curl with the --resolve parameter allowing you to do things like talk to a specific site of a DNS load-balanced setup or talk to a new deployment not yet made productive.

You can specify the resolve option multiple times so you can even catch redirects and move them to where you want as well.

It’s important to note that this intercept does only work on the ports you specify in the entries.

Read more…

Download Full Website Copy

Notes | 2021-04-01 (updated 2025-10-25) | 1 min read
#wget

Sometimes it’s nice to download a best effort version of a website, for example before completely redesigning it.

domain=WEB.SITE
wget $domain --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains $domain