Problem with resolving domain name with static ip

Rashkae ubuntu at
Sun Dec 14 16:38:57 UTC 2008

Ben Edwards wrote:
> I have the following in my /etc/network/interfaces
> auto eth1
> iface eth1 inet static
>         address
>         netmask
>         gateway
> I can ssh in from another box but when I try 'ping' I get
> 'ping: unknown host'.
> But when I 'ping' it woks fine (I used another box to
> extablish was the ip for so it seems it
> is having a problem resolving the domain name (how do I check what dns
> is being uses?).
> I am having a slimier problem on another box, it seems it I use static
> I have this problem but if I user dhcp all is OK.
> route -n on a working bo gives me
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
>   U     0      0        0 eth1
>     U     1000   0        0 eth1
>         UG    100    0        0 eth1
> So I think the is the correct gateway.
> This seems to of happened since I started using ibex (I think).
> Any ideas?
> Ben

Assuming is one of these home router thingies with built in
DNS, then add that to your /etc/resolf.conf file.


Or you can use the System -> Administration -> Network to input the
network settings.

More information about the ubuntu-users mailing list