LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-05-2005, 02:01 AM   #1
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Rep: Reputation: 0
Cool Unable to resolve hostname


Hi,

I'm a newbie to Linux. I'm currently using RedHat 8 with a 2.4 kernel.
I've managed to setup my ADSL modem. Currently, I'm able to ping IPs but not hostname. I've included my ISP's DNS IP in the /etc/resolve.conf like so

nameserver 165.21.83.88
nameserver 165.21.100.88

However, I'm encountering the hostname problem.
Any kind souls to advise?

Thanx in advance
 
Old 07-05-2005, 02:09 AM   #2
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
hi and welcome,
is your modem/router configured to use the correct DNS and Gateway?
if yes, then your /etc/resolv.conf should point to your router.
 
Old 07-05-2005, 02:17 AM   #3
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
My ADSL modem is the USB type, model is Prolink8000. Supposedly PnP on Windows. What I did was recompile the kernel and I used this driver from sourceforge. I've followed all the instructions in the post, so fasr so good except for the DNS. I've checked with my ISP and I've entered it in the /etc/resolve.conf

Correct me if I'm not getting what u meant
 
Old 07-05-2005, 02:22 AM   #4
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
** interposed question **

why not using a more up-to-date distro like FC3 or FC4??
 
Old 07-05-2005, 02:26 AM   #5
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
Thought of it, but since this is my first time using Linux and I'm already this close to finish setting up, I might as well just try solving it. I'll move on to some latest distro, not to worry. Right now, I found this setting up process very intresting. Linux is quite amazing I should say.
Hopefully, someone can shed some light on this issue.
 
Old 07-05-2005, 03:07 AM   #6
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
Anyway, any kind soul to assist me?
 
Old 07-05-2005, 03:48 AM   #7
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
ok, this modem works under linux...you can go online?
surfing only via ip-address?
 
Old 07-05-2005, 03:51 AM   #8
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, you got that right so far.
 
Old 07-05-2005, 04:09 AM   #9
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
what does a
Code:
host www.google.com
show?
 
Old 07-05-2005, 05:48 AM   #10
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
I'll let u noe. BRB
 
Old 07-06-2005, 12:44 AM   #11
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
# host www.google.com
gave me this
# ;; connection timed out; no servers could be reached
 
Old 07-06-2005, 01:30 AM   #12
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
put
nameserver 127.0.0.1
in your resolv.conf and start named!
make sure theres no firewall blocking port 53
 
Old 07-06-2005, 02:16 AM   #13
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
Here's what I did:

edited the /etc/resolv.conf
# nameserver <ISP Primary DNS>
# nameserver <ISP Secondary DNS>

start /var/named

And it worked! And after reboot, it still does!

Just curious, what did "named" do? And what's the difference between putting the DNS IPs in /etc/resolv.conf and /etc/resolve.conf?

Thks!
 
Old 07-06-2005, 03:07 AM   #14
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Quote:
Just curious, what did "named" do? And what's the difference between putting the DNS IPs in /etc/resolv.conf and /etc/resolve.conf?

/etc/resolve.conf won't do anything.

/etc/resolv.conf will


Delete /etc/resolve.conf, and leave /etc/resolv.conf
 
Old 07-06-2005, 03:08 AM   #15
adirock2
LQ Newbie
 
Registered: Jun 2005
Location: Singapore
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
I see. Will do that.
Thank u all so much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Want Numeric IP of Web Server to resolve to hostname cyrusc Linux - Newbie 2 03-19-2005 03:54 PM
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 08:37 AM
windows does not resolve linux hostname abrb220 Linux - Networking 6 05-18-2004 05:11 AM
Unable to resolve names Starblade Linux - Networking 1 10-25-2003 03:48 AM
Cannot resolve hostname problem for IglooFTP smc_one Linux - Networking 0 08-18-2003 11:33 AM


All times are GMT -5. The time now is 02:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration