You are not logged in.

#1 2010-04-13 03:00:14

colorful
Member
Registered: 2010-04-13
Posts: 1

help ping: unknown host

i use virtualbox  install archlinux.,and use NAT connect to the internet.
when i ping www.google.com that return ping: unknown host www.google.com. but if i ping ipaddress, that is OK.

that is my rc.conf configure

eth0 = "dhcp"
INTERFACES= (eth0)
ROUTES=(!gateway)

that is my resolv.conf (the content is null)
#..................
#..................

ifconfig out

eth0      Link encap:Ethernet  HWaddr 08:00:27:10:86:EB 
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:688 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19828 (19.3 Kb)  TX bytes:64329 (62.8 Kb)
          Interrupt:11 Base address:0xd020

ROUTE out

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.2.0        *               255.255.255.0   U     202    0        0 eth0
default         10.0.2.2        0.0.0.0         UG    202    0        0 eth0

Last edited by colorful (2010-04-13 03:04:32)

Offline

#2 2010-04-13 03:14:11

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: help ping: unknown host

You need at least one nameserver in your resolv.conf. Looks like your dhcp server is not sending dns entries. Try puting the address of your router in there as:

#router
nameserver 10.0.2.2
# google pdns
nameserver 8.8.8.8
nameserver 8.8.4.4

you could also use opendns or google public dns, etc if your router is not doing dns.

Last edited by mikesd (2010-04-13 03:17:08)

Offline

Board footer

Powered by FluxBB