LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-23-2006, 02:06 PM   #1
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Rep: Reputation: 15
Can't pull up URLs in my browser.


I just installed Red Hat 9 as my first into to Linux using the RH9 Bible. Everything went well untill I got to networking. We are on a wireless net and the compaq I just installed linux on doesn't have wireless so I decided to network it into my Dell running XP by ehternet and share the wireless. After a lot of work and trial and error I finally pinged the wirless hub. I figured my job was done so I pulled up a browser and typed in a URL to get "such and such URL could not be found". I found Googles IP addres and typed it into the browser and it pulled up googles home.
At first I had the Compaq/Linux conection manually configured and had the DNS IP set the same as it was on my Dell/XP. All the computers on this net seem to be using the wirless hub for DNS so I put in that info. It didn't work. I also tried using the XPs Ip for DNS with no luck.
Then I decided to see if it could figure it out for it's self and set up find IP add automatically.
It seems to have found the wireless hub as it's DNS but it still doesn't work.
What's next?
 
Old 04-23-2006, 02:25 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
What is in the file /etc/resolv.conf
 
Old 04-23-2006, 02:41 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
To see if a dns issue type the IP address of site like google. It is http://216.239.39.99/
If it works then I would say it is a DNS issue. If not then something else is the problem.

Brian1
 
Old 04-23-2006, 04:53 PM   #4
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by comprookie2000
What is in the file /etc/resolv.conf
search mshome.net
nameserver = the IP of the wireless hub

Could the mshome be the problem? I don't know where it got that if if that's what it should be. Should the search be the name of the wireless hub?
 
Old 04-23-2006, 05:10 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The mshome.net is probably from your ISP. You can take the DNS IP address from the router and enter them in /etc/resolv.conf. You should have similar lines below for /etc/resolv.conf.

search mshome.net
nameserver First_DNS_address
nameserver Second_DNS_address
nameserver Third_DNS_address

In Windows type ipconfig /all to get network configuration.
 
Old 04-23-2006, 07:09 PM   #6
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Original Poster
Rep: Reputation: 15
Windows IP Configuration

Host Name . . . . . . . . . . . . : Yoshi
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : Zippy

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : 3Com 3C920 Integrated Fast Ethern
Controller (3C905C-TX Compatible)

Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : 192.168.2.1

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . : Zippy
Description . . . . . . . . . . . : Cisco Systems PCI Wireless LAN Ad
er

Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.2.39
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1
DHCP Server . . . . . . . . . . . : 192.168.2.1
DNS Servers . . . . . . . . . . . : 192.168.2.1
Lease Obtained. . . . . . . . . . : Sunday, April 23, 2006 6:47:00 PM
Lease Expires . . . . . . . . . . : Sunday, April 23, 2006 8:47:00 PM

Linux /resolv.conf
Zippy
192.168.2.1

ifconfig
inet addr :192.168.0.2 Bcast :192.168.0.255 mask 255.255.255.0


When I do sharing XP gives the ehternet it's own subnet which is different than the main network. so the main net is on 192.168.2.x and the network between XP and Linux is 192.168.0.x
When I select find IP add automatically linux picks the XP machine as its DNS. I set it up manually to hold Zippys IP but it still diesn't work.
I am assuming the DNS can be on a different subnet?
I also plugged the Linux box's ethernet straight into the router and still was unable to browse.

Last edited by Yoshimitsuspeed; 04-23-2006 at 07:12 PM.
 
Old 04-23-2006, 07:18 PM   #7
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Original Poster
Rep: Reputation: 15
I take that back. even on manual IP mode it keeps changing /resolv.conf to the XPs IP.
 
Old 04-23-2006, 07:57 PM   #8
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Original Poster
Rep: Reputation: 15
I took the laptop back down and plugged it straight into the wireless hub. It found it's own IP address and took on the hub as it's DNS. I don't know all that much about computers but it seems like more than just the setting in resolv.conf.
Is there anything else that would cause a DNS comunication problem or something else that would cause this problem?
 
Old 04-24-2006, 07:01 PM   #9
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Original Poster
Rep: Reputation: 15
Any new ideas?
 
Old 04-24-2006, 07:53 PM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
What does '/sbin/route -en' show? Does it show a gateway route?

Did you turn off the firewall in Windows XP and Linux?

Is your Linux system still setup to get an IP address from a DHCP server?

Is the DHCP utilities installed?

The correct location for resolv.conf should be in /etc on a Linux system.

I can not help you any further unless you describe your network setup.
 
Old 04-24-2006, 07:59 PM   #11
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Quote:
I took the laptop back down and plugged it straight into the wireless hub. It found it's own IP address and took on the hub as it's DNS.
I would take those numbers
Code:
ifconfig
route -n
and set it up manually
Code:
ifconfig ethx 192.168.x.xx netmask 255.255.255.0 broadcast 192.168.x.xx up
route add default gw 192.168.x.x
 
Old 04-26-2006, 06:43 PM   #12
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Electro
What does '/sbin/route -en' show? Does it show a gateway route?
Destination--Gateway-------Genmask------Flags-MSS-window--Irtt--Iface
192.168.0.0--0.0.0.0------255.255.255.0---U----0-----0------0----eth0
169.254.0.0--0.0.0.0------255.255.0.0-----U----0-----0------0----eth0
127.0.0.0----0.0.0.0------255.0.0.0-------U----0-----0------0----LO
0.0.0.0------192.168.0.1--0.0.0.0---------UG---0-----0------0----eth0

I have no idea what this means but I would love to learn.

Quote:
Originally Posted by Electro
Did you turn off the firewall in Windows XP and Linux?
Yes
No change

Quote:
Originally Posted by Electro
Is your Linux system still setup to get an IP address from a DHCP server?
Quote:
Originally Posted by Electro
Is the DHCP utilities installed?
How do I check?
The RH9 bible only seems to go into setting up a DHCP & DNS servers. He doesn't seem to go into much detail on basic utilites.

Last edited by Yoshimitsuspeed; 04-26-2006 at 08:22 PM.
 
Old 04-26-2006, 07:52 PM   #13
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Electro

I can not help you any further unless you describe your network setup.

http://www.matrixgarage.com/Images/stuff/linuxp.jpg

Last edited by Yoshimitsuspeed; 04-26-2006 at 08:23 PM.
 
Old 04-26-2006, 08:25 PM   #14
Yoshimitsuspeed
Member
 
Registered: Apr 2006
Distribution: FC6
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by comprookie2000
I would take those numbers
Code:
ifconfig
route -n
and set it up manually
Code:
ifconfig ethx 192.168.x.xx netmask 255.255.255.0 broadcast 192.168.x.xx up
route add default gw 192.168.x.x

How do I change my Broadcast? It's currently 192.168.0.255.
Could that be right or do I need to change it?
 
Old 04-26-2006, 08:33 PM   #15
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
The broadcast is fine.
What is this;
169.254.0.0--0.0.0.0------255.255.0.0-----U----0-----0------0----eth0
 
  


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
set special URLs in browser Trio3b Linux - Security 5 04-28-2005 10:13 AM
how to check urls and stop internet urls in network gface Linux - Networking 5 03-24-2005 09:48 PM
can't pull software off of disk 2 or 3?? Motown Mandriva 0 06-30-2004 02:01 PM
backup: push or pull? nielchiano Linux - General 3 02-05-2004 05:46 AM
Can i pull the card out? nutshell Linux - General 2 03-14-2002 06:59 PM

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

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