Squidが何をやっても500を返す時

curlで疎通テスト

curl -o - https://www.google.com -U user:password -x 127.0.0.1:3128 --proxy-digest --digest
curl: (56) CONNECT tunnel failed, response 500

/var/log/squid/access.log は以下の感じ

1678339119.530      0 127.0.0.1 NONE_NONE/500 0 CONNECT www.google.com:443 - HIER_NONE/- -

原因は /etc/resolv.conf がカラッポでした。以下のように修正

# あなたのDNSサーバーのアドレスを書いてください
nameserver 192.168.0.1
search .