Thanks, unman, but it's not working for me. More precisely, your suggestion above worked fine. The line "10.1.1.1 myhost.example.com" is appended to /etc/hosts. But when I open a disposable terminal and type 'host myhost.example.com', I get the DNS address, not 10.1.1.1.
What am I doing wrong? On Wednesday, April 19, 2023 at 11:19:56 AM UTC-4 unman wrote: > 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/8e7d4e8d-3421-4a42-b56a-3d13ed4ef513n%40googlegroups.com.