Results 1 to 10 of 12
I get a "Temporary failure resolving" error when I try to do a apt-get update and when I ping a site, such as google, I get a unknown host google.com. ...
- 04-23-2007 #1Just Joined!
- Join Date
- Mar 2007
- Posts
- 10
Temporary failure resolving
I get a "Temporary failure resolving" error when I try to do a apt-get update and when I ping a site, such as google, I get a unknown host google.com. By the way this computer is getting its internet connection from a windows computer that has ICS enabled.
- 04-23-2007 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Can you post the results of
That should get us started as to the problem. I would imagine it is just a simple DNS problem.Code:/sbin/ifconfig cat /etc/resolv.conf
- 04-23-2007 #3Just Joined!
- Join Date
- Mar 2007
- Posts
- 10
/etc/resolv.conf
search bghvoclabs
nameserver 10.1.1.1
/sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:74:17:CA:38
inet addr:10.1.1.5 Bcast:10.255.255.255 Mask:255.0.0.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:100
RX bytes:2921 (2.8 KiB) TX bytes:0 (1154 KiB)
Base address:0xecc0 Memory:ff8e0000-ff900000
- 04-23-2007 #4Just Joined!
- Join Date
- Mar 2007
- Posts
- 10
opps
RX packets:26
TX packets:14
- 04-23-2007 #5Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
As a test try
And try it again...Code:cat /etc/resolv.conf > ~/resolv.conf.bak sudo echo nameserver 208.67.222.220 >> /etc/resolv.conf
- 04-24-2007 #6Just Joined!
- Join Date
- Mar 2007
- Posts
- 10
I tried this and then tried to apt-get update and ping google.com but i get the same results.
- 04-24-2007 #7Linux User
- Join Date
- Feb 2006
- Posts
- 484
did you set the gateway correctly?
use the route command
#> route add default gw gw_ip_address
- 04-24-2007 #8Just Joined!
- Join Date
- Mar 2007
- Posts
- 10
Yes, the gateway is set to 10.1.1.1 that is my windows computer. So are the dns-nameserver (in /etc/network/interfaces) and the nameserver in /etc/resolv.conf
- 04-25-2007 #9Linux User
- Join Date
- Feb 2006
- Posts
- 484
the gateway not equal to the dns server
the dns server isn't your window machine ,it is the gateway
so confgiure your windows machine as the gateway
#> route add default gw 10.1.1.1
check the the nameservers on the windows machine and use thats
if you are using dhcp you needn't set up the nameservers
- 04-25-2007 #10Just Joined!
- Join Date
- Mar 2007
- Posts
- 10
So, should my linux box have a static ip (how its setup right now) or should I use dhcp? My windows computer has two nics, one connected the the internet, the other going to the linux box. I want all network traffic to be routed, through the windows copmuter, so on the network you can only see the windows box, but the linux box can access the internet and get packages for etch.


Reply With Quote
