qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom DNS for a VM


From: Thomas Huth
Subject: Re: Custom DNS for a VM
Date: Mon, 30 May 2022 14:54:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0

On 26/05/2022 12.01, Narcis Garcia wrote:
Is it possible to specify an explicit DNS IP for a VM in user mode networking?

For example, host uses 1.2.3.4 as nameserver at /etc/resolv.conf
And I want a user mode VM makes queries to a different nameserver.

Context: Qemu 5.2.0 in Debian 11 host. All command-line.

I've never tried, but -netdev user has a "dns" option, so have you tried something like already:

 qemu-system-... -nic user,dns=8.8.8.8

?

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]