LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2010, 01:58 AM   #1
CNBarnes
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Debian
Posts: 41

Rep: Reputation: 15
apt-get will not resolv address


apt-get and ssh are now all of a sudden not resolving hostnames, but strangley enough, ping will.

# ping ftp.us.debian.org
PING ftp.us.debian.org (64.50.236.52) 56(84) bytes of data.
64 bytes from ftp-chi.osuosl.org (64.50.236.52): icmp_seq=1 ttl=53 time=37.6 ms

# apt-get update
Err http://volatile.debian.org lenny/volatile Release.gpg
Could not resolve 'volatile.debian.org'



This was working just SECONDS ago. What's more - it works from another computer on the same network (using the exact same resolv.conf file).
 
Old 06-21-2010, 02:18 AM   #2
saifkhan123
Member
 
Registered: Apr 2009
Distribution: Red Hat/CentOS
Posts: 108

Rep: Reputation: 19
make sure that your /etc/resolve.conf contains the valid nameservers and redundancy should be there (define multiple dns servers).
 
0 members found this post helpful.
Old 06-21-2010, 03:00 AM   #3
kumar.manoj412
Member
 
Registered: May 2007
Location: India
Distribution: Mandriva, Ubuntu
Posts: 43
Blog Entries: 1

Rep: Reputation: 16
Try appending this line to your /etc/hosts file

130.89.149.227 volatile.debian.org




Quote:
Originally Posted by CNBarnes View Post
apt-get and ssh are now all of a sudden not resolving hostnames, but strangley enough, ping will.

# ping ftp.us.debian.org
PING ftp.us.debian.org (64.50.236.52) 56(84) bytes of data.
64 bytes from ftp-chi.osuosl.org (64.50.236.52): icmp_seq=1 ttl=53 time=37.6 ms

# apt-get update
Err http://volatile.debian.org lenny/volatile Release.gpg
Could not resolve 'volatile.debian.org'



This was working just SECONDS ago. What's more - it works from another computer on the same network (using the exact same resolv.conf file).
 
0 members found this post helpful.
Old 06-22-2010, 01:56 PM   #4
CNBarnes
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 15
Actually, we were trying to install the pam-ldap authentication, which required some changes to /etc/nsswitch.conf (and we didn't have it correct). Apparently nsswitch.conf does it's own DNS functions (and in a not-so-nice way).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get has the problems to resolve address ravi.xolve Linux - Software 4 05-01-2010 02:21 AM
how to add an http address in debian's /etc/apt/sources.list rumz70 Linux - Newbie 1 03-04-2008 10:20 PM
Problem with Apt-get - all address have ip 1.0.0.0 tomj88 Debian 12 06-14-2005 06:37 AM
apt sources.list by IP address? redsky Debian 4 06-24-2004 12:46 PM
can access site address but not hostip: dag apt tomhemba Linux - Networking 2 06-17-2004 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration