LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fix: 'apt-get update' dns resolves to 1.0.0.0 (https://www.linuxquestions.org/questions/linux-software-2/fix-apt-get-update-dns-resolves-to-1-0-0-0-a-433314/)

benjeeqds 04-09-2006 07:46 AM

Fix: 'apt-get update' dns resolves to 1.0.0.0
 
I had a problem today which I thought I would share with you.

When I was using 'apt-get update' it kept trying to connect to the IP address 1.0.0.0.

This is the message I got:
Code:

# apt-get update
Err http://ftp.us.debian.org testing/main Packages
Could not connect to ftp.us.debian.org:80 (1.0.0.0),
connection timed out
Err http://secure-testing.debian.net
etch/security-updates/main Packages
Could not connect to secure-testing.debian.net:80
(1.0.0.0), connection timed out
Err http://ftp.us.debian.org testing/main Release
Could not connect to ftp.us.debian.org:80 (1.0.0.0),
connection timed out
Err http://secure-testing.debian.net
etch/security-updates/main Release
Could not connect to secure-testing.debian.net:80
(1.0.0.0), connection timed out
0% [Connecting to secure-testing.debian.net (1.0.0.0)]
[Connecting to ftp.us.debian.org (1.0.0.0)]
[1]+ Stopped apt-get update

This is how I fixed it:

From GNOME... System > Admistration > Networking > DNS

I then removed the DNS server 10.1.1.1 (my D-Link Router) and manually added xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy, which are my ISP's DNS servers. (Substitute x & y for your own ISP's DNS servers)

After a reboot 'apt-get update' worked fine.


Hope that helps somebody. :)


The problem happened on Ubuntu and Fedora Core.

Ben

www.qdsecurity.com


All times are GMT -5. The time now is 10:56 AM.