Re: [qubes-users] Modifying /etc/hosts in dispVM
Thank you both for this. Makes sense. On Thursday, April 20, 2023 at 8:15:02 AM UTC-4 unman wrote: > On Thu, Apr 20, 2023 at 11:29:08AM +, Rusty Bird wrote: > [quote] > 'host' isn't suitable for testing this, because it never looks at the > [/quote] > Right - neither are most of the *other* DNS utilities - ping should do. > Or `getent hosts ...` > -- 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/b19f6d8b-caf0-4ebb-b418-27b3142f6c8bn%40googlegroups.com.
Re: [qubes-users] Modifying /etc/hosts in dispVM
On Thu, Apr 20, 2023 at 11:29:08AM +, Rusty Bird wrote: [quote] 'host' isn't suitable for testing this, because it never looks at the [/quote] Right - neither are most of the *other* DNS utilities - ping should do. Or `getent hosts ...` -- 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/ZEEswfwmKYSuiE4w%40thirdeyesecurity.org.
Re: [qubes-users] Modifying /etc/hosts in dispVM
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 > 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. 'host' isn't suitable for testing this, because it never looks at the /etc/hosts file: https://serverfault.com/questions/121890/hosts-file-seems-to-be-ignored Rusty -BEGIN PGP SIGNATURE- iQKTBAEBCgB9FiEEhLWbz8YrEp/hsG0ERp149HqvKt8FAmRBIgRfFIAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDg0 QjU5QkNGQzYyQjEyOUZFMUIwNkQwNDQ2OUQ3OEY0N0FBRjJBREYACgkQRp149Hqv Kt9f0w//YnwHK/X+kaSu1hXQfZ0rQbi8iRNjB764+BNW7WXBEK4wOR+aMrpIJz0R qjrYleqW8lhZ1tZwWxEmcSPZFUOE7KtXM2RyAi2M8lLrd83/QJEbVHxZIFY1twIs upVDxnayDF1+oqsNSfIVX8T7aq3Arp93Od5afMztfOg88EqWthbia5klig3S6Rg1 1qyelWSzsT6sic6M/UrXzE902g/kVFchsXEYNmnKH6etdlS6ZHr+E9nUypZc+U0o 20f3t3okjNvBrGddVIkbgLR/iAuJ7+C/fL5dCCL8b3z6QlcI2WhY4fVBYFzWbWTu Hr448m92kRJyuOB5AGF1nfNm8WjDFt2Rr6NDxSIv7oFVJRtbmuBkDGw4J1UCFHNc xCeVE93OkFlAeqEt+7Gvj2HvcQJqUQzWM92OPRUk5b2HXV0NMmYgPcVQV+vgtLy1 CkGs+3WSY61eKkUxARPaTJxCBwTY+LALOt+9aYsPpRK5P5Nj6SwdpjzGugWeKnxk 5ZEH8UhBLefFxItl2+hUCFWPuaBdQ0XOG0zitXVgLwXwn/CCRxV7Ibp+0lv6w+MT nmtdL38wigQkLEG8uKqQAFpow5asNdTQe66aXwrU7Z74JLclK62ZaaaszLT8K3oq Rc7b87rNbVjWmLErkLhWIo3mlq8EBme8iGvahasHPt+QGX/R8UQ= =mRxX -END PGP SIGNATURE- -- 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/ZEEfHyz90ycUfL2v%40mutt.
Re: [qubes-users] Modifying /etc/hosts in dispVM
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.
Re: [qubes-users] Modifying /etc/hosts in dispVM
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.commyhost) 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.
[qubes-users] Modifying /etc/hosts in dispVM
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.commyhost) 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. -- 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/5a037739-a73d-406e-b910-68b41883b453n%40googlegroups.com.