qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] dns server not working in QEMU using usermode networkin


From: FONNEMANN Mark
Subject: Re: [Qemu-devel] dns server not working in QEMU using usermode networking (SLIRP)
Date: Sat, 29 Apr 2017 18:25:26 +0000

Hello-

>And I guess these do work fine on the host.

Yes:

address@hidden ~]$ nslookup www.google.com
Server:         4.2.2.1
Address:        4.2.2.1#53

Non-authoritative answer:
Name:   www.google.com
Address: 172.217.11.4

>Perhaps you should make sure that qemu does emit the DNS lookup request to 
>these thanks to
>tcpdump -i any host 4.2.2.1 or host 4.2.2.2
>while you run nslookup from the guest.

1. Issue command as requested on linux host:

 address@hidden qemu]$ sudo tcpdump -i any host 4.2.2.1 or host 4.2.2.2
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes

2. Start qemu on linux host:

address@hidden qemu]$ /usr/local/bin/qemu-system-i386 -display curses 
-readconfig qemu.cfg

3. Do nslookup on linux guest:

address@hidden:~# nslookup www.google.com

                    *** Unknown host

                    nslookup: www.google.com: Unknown host

address@hidden:~# nslookup www.google.com 10.0.2.3
                    *** Unknown host

                    nslookup: www.google.com: Unknown host

4. Exit tcpdump via ctrl-c:

^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel

Thanks for your continued assistance!

Mark.



reply via email to

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