LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-03-2005, 10:04 AM   #1
Scoobsky
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Rep: Reputation: 0
linux resolves IP Addresses but not URLs...>


Hi all,

I'm on Fedora Core 4.

I've just installed a network card on my system to connect my Ethernet ADSL Modem to get out on the net.

I configured the IP address and subnet mask using ifconfig eth0 inet IPAddress netmask NETMaskAddress and it works fine.

My problem is that when I type a URL in firefox, it says it cannot find the site but if I type in the IP Address for that site, then it takes me straight to the page and opens it up without a problem.
Likewise, I cannot ping a URL (host unreachable) but I can ping it fine if I use the IP Address instead.

My guess is that it's a problem with my DNS settings on linux but I don;t really know where to look, what to look for and what to do wo make it so that it resolves URLs as well as IP addresses.

Any help would be greatly appreciated.

Thanks in advance,
M.
 
Old 10-03-2005, 10:13 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
If you set your machine to obtain ip address automatically from your ISP, it should get the dns info also. If you put the address in manually, you may have to put the ISP dns servers in /etc/resolv.conf .
You can use system-config-network to have a visual aid.
 
Old 10-03-2005, 10:17 AM   #3
Scoobsky
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Original Poster
Rep: Reputation: 0
cool.. that makes sense.

Could you post me a copy of your resolv.conf file so i have a example of what it looks like (Im in the office at the moment and my machine is at home, so I'll have a look later when I get home, I need to fix grub first cos I messed up with my pc this morning and it won;t even boot up anymore! lol.

Thanks in advance.

M.
 
Old 10-03-2005, 10:21 AM   #4
Scoobsky
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Original Poster
Rep: Reputation: 0
The other thing is.... when i use firefox to log into my Ethernet ADSL Router to configure the login name and password, I can access the web page by using the IP address of the modem: 192.168.1.1 but it says it cannot find it if I use it's name: voyager.home
Will putting the DNS address of my ISP resolve that considering Im not even going out on the net, I'm just going from eth0 to my modem and they both are linked by a cat5 cable?

Cheers,
M.
 
Old 10-03-2005, 10:36 AM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
Will putting the DNS address of my ISP resolve that considering Im not even going out on the net
Your ISP dns servers have no knowledge of your local network. If you want to resolve names locally, you will need to setup your own dns server or put the hostnames into the /etc/hosts file.

I'm using my own server locally and using the ISP servers as forwarders.
Your /etc/resolv.conf may look something like this ( use the correct ip numbers )
nameserver 123.123.123.1

Here is mine.

; generated by /sbin/dhclient-script
search mydomain.com
nameserver 192.168.0.1
 
Old 10-03-2005, 10:40 AM   #6
Scoobsky
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks a lot for your help.. will try that tonite.. no doubt it'll work :-)

Thanks again.
M.
 
Old 10-03-2005, 10:41 AM   #7
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
Your ISP's DNS should be obtained automatically, but in some cases you need to enter the primary and secondary DNS entries.

You could just call your ISP, and they will provide these for you.
 
  


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
AOL URLs under Linux Dial-in NeroZero2 Linux - Software 0 09-22-2005 05:33 AM
how to check urls and stop internet urls in network gface Linux - Networking 5 03-24-2005 10:48 PM
Any name resolves to. A? CNAME? DNS Q dlublink Linux - Networking 3 01-11-2005 10:55 AM
IP resolves, not others belorion Linux - Networking 3 06-30-2004 03:39 AM
Need help finding urls of news radio sources for Real player Linux Pcghost Linux - Software 5 05-27-2003 09:58 AM

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

All times are GMT -5. The time now is 06:55 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