LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2005, 04:15 PM   #1
decaf
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
unable to lookup hostnames


I have spent the last few hours trying ot find the answer to this one. I just build a new linux box using LFS as a base. It is on my network and can ping by IP address just fine. Also if I put the site I want into my hosts file I can get to it without a problem. However if I don't have it in my hosts file and I try to ping or otherwise use a site by domain name it fails with uknown host. I have used nslookup server and got the following:

Default server: 127.0.0.1
Address: 127.0.0.1

I know this is where my problem is but I can't seem to fix it. I have the correct dns entries in my resolve.conf file
my nsswitch.conf has:

hosts: files dns

What else would be helpful to figure this out or please give me a solution. All my other machines (Mepis based) are working perfectly.
 
Old 03-30-2005, 04:26 PM   #2
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Try to edit /etc/resolv.conf and put in your ISPs or networks DNS servers.

edit..

Quote:
I have the correct dns entries in my resolve.conf file

Just to point out there is is no "E" in that file name..

Last edited by fur; 03-30-2005 at 04:28 PM.
 
Old 03-30-2005, 04:26 PM   #3
awdac
LQ Newbie
 
Registered: Mar 2005
Posts: 21

Rep: Reputation: 15
Re: unable to lookup hostnames

Quote:
Originally posted by decaf
I know this is where my problem is but I can't seem to fix it. I have the correct dns entries in my resolve.conf file
Just guessing here, but that's a typo above, right? Your DNS servers should be listed in /etc/resolv.conf (without the "e").
 
Old 03-30-2005, 04:27 PM   #4
decaf
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
As I stated in my first post I have the correct DNS entries in my resolve.conf file. That was the first thing I checked.
 
Old 03-30-2005, 04:30 PM   #5
decaf
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
you picked up on it. Thanks. my resolv.conf file was named resolve.conf. once I renamed it everything worked. Guess 3 days of working on this machine made my eyes tired. Thanks again.
 
  


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
Unable to resolve any hostnames, including localhost calamari Linux - Networking 10 11-02-2005 01:17 PM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
Apache DNS hostnames lookup; SuSE 9.2 Carlee SUSE / openSUSE 0 01-29-2005 03:04 PM
hostnames thenewguy05 Linux - Networking 1 07-12-2004 05:08 PM
sudo: unable to lookup via gethostbyname() rickenbacherus Linux - General 2 12-07-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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