cant ping external website

Gilles Gravier gilles at gravier.org
Tue Sep 23 16:29:45 UTC 2008


Hi!

NoOp wrote:
> On 09/23/2008 08:58 AM, Gilles Gravier wrote:
>   
>> Hi!
>>
>> NoOp wrote:
>>     
>>> On 09/23/2008 02:21 AM, Donny George wrote:
>>>
>>>   
>>>       
>>>> iface eth0 inet static
>>>>
>>>> address 10.4.139.3
>>>>
>>>> netmask 255.255.255.0
>>>>
>>>> network 10.4.139.0
>>>>
>>>> broadcast 10.4.139.255
>>>>
>>>> gateway 10.4.139.254
>>>>     
>>>>         
>>> You only need these lines in that part of your /etc/resolv.conf:
>>>
>>> iface eth0 inet static
>>> address 10.4.139.3
>>> netmask 255.255.255.0
>>> gateway 10.4.139.254
>>>   
>>>       
>> *NO!* These lines aren't for */etc/resolv.conf* ! Don't put them in there.
>>
>> resolv.conf is ONLY for hostname resolving. As such, it only contains
>> lines like :
>>
>> *nameserver *aaa.bbb.ccc.ddd
>> *domain *yourdomain.tld
>> *search *somedomains
>> *sortlist *ip/netmask-pairs
>>
>> What NoOp is describing would be the file */etc/network/interfaces* ...
>>
>> Gilles.
>>     
>
> Thanks Gilles! Good catch... sorry I was also checking /etc/resolv.conf
> at the time and brain didn't match keyboard :-)(
>
>   
Hehe. No problems... Worst I've ever done was "rm -rf /tmp /*" as root.

(notice the unwanted space between /tmp and /* which makes all the
difference in the world)

Oh well... brain, fingers and caffeine...

Cheers,
Gilles.


-- 
/*Gilles Gravier*/ *=* *Gilles at Gravier.org* <mailto:Gilles at Gravier.org>
ICQ : *77488526*
<http://www.icq.com/whitepages/about_me.php?Uin=77488526> * || *MSN
Messenger : Gilles at Gravier.org <http://members.msn.com/Gilles@Gravier.org>*
*Skype : ggravier <callto://ggravier>* || *Y! : ggravier
<http://profiles.yahoo.com/ggravier> || AOL : gillesgravier
<aim:goim?screenname=gillesgravier>
PGP Key ID : *0x8DE6D026*
<http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index>
"Chastity is its own punishment." (/Solomon Short/) [/David Gerrold/]
"De toutes les aberrations sexuelles, la chasteté est la plus
aberrante." [Anatole France]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080923/e77d952a/attachment.html>


More information about the ubuntu-users mailing list