On Wed, Apr 19, 2023 at 07:06:19AM -0700, john.e...@gmail.com wrote:
> I haven't been able to figure out how I can modify /etc/hosts in a dispVM 
> so that my entry (such as 10.1.1.1   myhost.example.com    myhost) will be 
> used instead of DNS.
> 
> I'm trying to direct my traffic to a different host than the one listed in 
> DNS.
> 
> Anyone know an easy fix to this?  Thanks.
> 
It's a disposable - you need to set the change in the disposable
template.
Add this to /rw/config/rc.local in the disposable template:
echo "10.1.1.1   myhost.example.com" >> /etc/hosts

That will take effect in the disposable template, and in every
disposable that uses it.

I use this often because I block DNS for many qubes, provide hosts
entries, and whitelist those IPs.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/ZEAGmG0Ql3wFocZf%40thirdeyesecurity.org.

Reply via email to