On Mon, Nov 17, 2008 at 03:23:08AM -0800, Alexander wrote:
> Could somebody advise where I'am wrong?
> -----------------------------
> bash-3.2# ifconfig -a
> lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 
> index 1
>     inet 127.0.0.1 netmask ff000000 
> rge0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 
> 2
>     inet 10.10.163.111 netmask ffffff00 broadcast 10.10.163.255
>     ether 0:f:ea:c0:9a:eb 
> sppp0: flags=10010008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4,FIXEDMTU> 
> mtu 1492 index 5
>     inet 217.172.8.6 --> 192.168.131.1 netmask ffffff00 
>     ether 0:0:0:0:0:0 
> lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 
> index 1
>     inet6 ::1/128 
> 
> 
> bash-3.2# netstat -rn
> 
> Routing Table: IPv4
>   Destination           Gateway           Flags  Ref     Use     Interface 
> -------------------- -------------------- ----- ----- ---------- --------- 
> default              192.168.131.1        UG        1          0           
> 10.10.163.0          10.10.163.111        U         1          0 rge0      
> 192.168.131.1        217.172.8.6          UH        1          0 sppp0     
> 127.0.0.1            127.0.0.1            UH        1          0 lo0       
> 
> Routing Table: IPv6
>   Destination/Mask            Gateway                   Flags Ref   Use    If 
>   
> --------------------------- --------------------------- ----- --- ------- 
> ----- 
> ::1                         ::1                         UH      1       0 lo0 
>   
> 
> 
> bash-3.2# nslookup www.ru
> Server:        217.172.16.8
> Address:    217.172.16.8#53
> 
> Non-authoritative answer:
> Name:    www.ru
> Address: 194.87.0.50
> 
> 
> bash-3.2# ping 194.87.0.50
> 194.87.0.50 is alive
> 
> 
> bash-3.2# ping www.ru
> ping: unknown host www.ru

Check how your system is configured to resolve names (DNS, LDAP, flat
files, NIS) in file:

   /etc/nsswitch.conf

Looks like you want DNS, so verify the "hosts" entry.  Something 
like this would probably work:

   hosts:       file dns

Reply via email to