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: Sun, 30 Apr 2017 12:42:41 +0000

>Could you show us your NG.cfg, your guest /sbin/ifconfig and /sbin/route 
>output and /etc/resolv.conf >content for that host?

address@hidden qemu]$ cat NG.cfg
[drive]
  format = "raw"
  file = "qemu_rootfs_512.img"

[drive]
  format = "raw"
  file = "placeholder2.vhdx"

[drive]
  format = "raw"
  file = "swap_512m.img"

[drive]
  format = "vhdx"
  file = "placeholder.vhdx"

[machine]
  usb = "on"
  initrd = "initrd-2.6.11.12.img.gz"
  kernel = "vmlinuz-2.6.11.12-vanilla.bz"
  append = "root=/dev/hda"

[memory]
  size = "2G"

[smp-opts]
  cpus = "2"

address@hidden:~# ifconfig
                   eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:56
                             inet addr:10.0.2.15  Bcast:10.255.255.255  
Mask:255.255.255.0
                             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                             TX packets:0 errors:0 dropped:0 overruns:0 
carrier:0
                             collisions:0 txqueuelen:1000
                             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
                             Base address:0xc000 Memory:febc0000-febe0000

                   lo        Link encap:Local Loopback
                             inet addr:127.0.0.1  Mask:255.0.0.0
                             UP LOOPBACK RUNNING  MTU:16436  Metric:1
                             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                             TX packets:0 errors:0 dropped:0 overruns:0 
carrier:0
                             collisions:0 txqueuelen:0

                  address@hidden:~# route
UDP packet for DNS server
                                                              translating 
302000a against ffffff 302000a
                                                                                
                        it's an alias
                                                                                
                                     it's DNS
      dns_addr is cached: 1020204
                                 got resolv.conf entry '4.2.2.1'
                   Kernel IP routing table                      
parsed 7fe2
                   Destination     Gateway         Genmask         Flags Metric 
Ref    
Use Iface '4.2.2.2'
                   10.0.2.0        *               255.255.255.0   U     0      
0        0 eth0
                   default         10.0.2.2        0.0.0.0         UG    0      
0        0 eth0

address@hidden:~# cat /etc/resolv.conf
                   nameserver 10.0.2.3

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

                   nslookup: www.google.com: Unknown host

HTH

It appears using the "route" command causes your DNS debug statements to print 
out but still nslookup does not work correctly.

mark.





reply via email to

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