Open juantascon opened 2 months ago
echo "10.10.10.10 somehost" >> path dnsproxy --hosts-files=./path
2024/09/10 13:30:09.174559 INFO dnsproxy starting version=0.73.1 revision="" branch="" commit_time="" 2024/09/10 13:30:09.174606 ERROR running dnsproxy err="configuring proxy: creating default handler: open ./path: invalid argument"
DNSProxy prepends a slash to the path, so you need the full path without a leading slash. For example, if you're in /home/whoever, you would need --hosts-files=home/whoever/path.
/home/whoever
--hosts-files=home/whoever/path
echo "10.10.10.10 somehost" >> path dnsproxy --hosts-files=./path
2024/09/10 13:30:09.174559 INFO dnsproxy starting version=0.73.1 revision="" branch="" commit_time="" 2024/09/10 13:30:09.174606 ERROR running dnsproxy err="configuring proxy: creating default handler: open ./path: invalid argument"