m...@lamarciana.com:
> Hi,
> 
> I'm trying to figure out how I can change my DNS settings for an
> AppVM. I'm relatively new to Qubes, so other related issues in this
> forum have clarified me some ideas but I am still quite puzzled.
> 
> This is what I have done so far:
> 
> 1 - I have created a ProxyVM, which in turns connect to sys-firewall
> as NetVM. This ProxyVM uses debian-8 as template, because I'm
> following some tutorials in Internet about networking stuff using
> kali linux (configuring OpenDNS is one part). This ProxyVM is a
> StandaloneVM in order to keep changes in /.
> 
> 2 - I have added to it network-manager service
> 
> 3 - I have edited /etc/dhcp/dhclient.conf in my ProxyVM and I have
> added the following line with OpenDNS IPs:
> 
> prepend domain-name-servers 208.67.222.222, 208.67.220.220;
> 
> 4 - I have connected my AppVM to this ProxyVM as NetVM.
> 
> 5 - I have restarted my ProxyVM and my AppVM.
> 
> Now, I thought /etc/resolv.conf in my AppVM and ProxyVM should have
> changed. But no, they still have:
> 
> nameserver 10.137.5.1 nameserver 10.137.5.254
> 
> I see that my AppVM takes its /etc/dhcp/dhclient.conf from the
> ProxyVM, because that line is also added there.
> 
> Going to https://dnsleaktest.com confirms that I'm still using my ISP
> DNS server.
> 
> I guess that there is a way to do that without having to create a
> StandaloneVM for my ProxyVM, but I tried to do everything manual to
> learn how everything is tied. But anyway it doesn't work...
> 
> Thanks!



If I understand correctly, permanently changing /etc/resolv.conf in the
ProxyVM to show:

 nameserver 208.67.222.222
 nameserver 208.67.220.220

should achieve that in a standalone ProxyVM.

Were it a TemplateBasedVM, you could have /rw/config/rc.local copy a
file containing the above two lines to /etc/resolv.conf on boot
(replacing /etc/resolv.conf), then call
/usr/lib/qubes/qubes-setup-dnat-to-ns.

I haven't tested this myself on a standalone ProxyVM.

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/687d366a-c5fe-dd4c-4354-74f2373f72e2%40riseup.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to