Solved

simple network problem

Posted on 2000-05-15
9
235 Views
Last Modified: 2010-04-20
OK, I have a very simple network setup in my house.  I have a host computer (running win98) of 10.0.0.1 This computer has two network cards, one for the local network, and one for internet, a mediaone (cable modem) acccount.  I have client computers (also running win98) of 10.0.0.x  I have just installed redhat linux to one.  I have set it so its IP is of 10.0.0.2  On all my other win98 systems i set it up so it uses the gateway of 10.0.0.1 and they can all get online fine and everything works.  However my linux machine is different.  Here's the problem.  It can ping the local network.  It can also ping say the IP of YAHOO!.  However if i try to ping say, yahoo.com instead of the IP of yahoo, it will say "ping: unknown host yahoo.com"  So this leads me to believe that there's a problem with either my nameserver or DNS (I'm no linux expert obviously, just started.)  I don't know the nameserver for mediaone, they won't tell me, i asked them.  Can anybody help me get my linux computer to lookup names correctly?  Any other questions feel free to ask if I need to elaborate on anything.  Thanks so much for the help!
0
Comment
Question by:idadan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 2

Expert Comment

by:linuxwrangler
ID: 2811306
Yes, it does sound like a nameserver problem. In Linux, the nameservers will be listed in the file /etc/resolv.conf. It's odd that an ISP won't tell you the nameserver addresses - if my ISP did that I'd tell them I was getting a different ISP. In any case you can probably figure it out. Log into your Linux box as root and use tcpdump to look at packets.

Use the command "tcpdump -n port 53"

Basically this says dump packets to/from port 53 (name service) and display numerically instead of by name. You should see a return that looks something like:

eth0 > 10.0.0.3 1042 > 1.2.3.4.domain: 33036+ A? www.yahoo.com.

where 1.2.3.4 is the nameserver being queried.

Unfortunately without watching for a while you will only get one nameserver and you should have another for backup. Of course if you have a problem with the first you can just repeat the exercise and will probably get the IP for the second.

Once you have the IP, add a line to /etc/resolv.conf that says:
nameserver 1.2.3.4
(again, where 1.2.3.4 is the IP you discovered)

Happy hunting.

0
 

Author Comment

by:idadan
ID: 2811803
I'm sorry but tcpdump returns, "command not found".  I am running redhat 6.1 I take it redhat 6.1 doesn't ship with this...If you have any ways around this, please post it, you sound like you know a lot about linux.  I have a cable modem, thats why i'm sticking with this isp, ;)
0
 

Expert Comment

by:Skeez
ID: 2811906
Just one question: Did I get you right, that you can open "http://www.yahoo.com" on your windows machine and that your linux machine is routing the traffic properly? You also get a result when you execute "pint www.yahoo.com" on your windows machines?
0
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 1

Expert Comment

by:roald
ID: 2811962
If you ISP won't give you the nameservers you can use another nameserver. It works just as well but a bit slower, or:

If you go to "Start"->"Run" on your windows 98 box, and type "winipcfg" and then choose more info, you will be able to read out what nameserver it has been configured to use, Just make sure that the network card you are looking at the configuration for is the right one, or:

use these server from dns:
ns0.mediaone.com      147.191.2.67
ns1.mediaone.com      169.152.79.6
0
 
LVL 2

Expert Comment

by:linuxwrangler
ID: 2812218
Re: tcpdump. You must be root to run it as it will allow you to look at all the traffic visible to your NIC.

Did you try it as root? It has been on every Linux install I have ever used (RedHat, SuSe, Trinux...) If it wasn't installed, grab the disk and install the RPM (I'm going to assume that it will start with tcpdump but am not sure as it has always been part of the default install for me). It is an essential network troubleshooting tool so even if you don't use it now it would be good to have available.

Oh, try "locate tcpdump" to see if the file is somewhere that your path doesn't point. In RedHat the default user's path does not point to the directory where tcpdump resides.
0
 

Author Comment

by:idadan
ID: 2812597
Skeez: On the other machines, all windows, including host, everything works fine, but this linux client doesn't work.

roald: Thanks for the help.  However I entered the ips under "netconf" in DNS and it still didn't work.  Please tell me where exactly to enter what.  I'm sorry as I said i'm sorta new to linux and for 500 points, i need a bit more guidance.  Thanks though.  If you help me get it with another comment i'll accept your answer.

linuxwrangler: Yes i was on as root.  It must not have been installed, "locate tcpdump" produced nothing.  Thanks for the help though.
0
 
LVL 1

Expert Comment

by:tadams
ID: 2812661
Ok, my /etc/resolv.conf contains the following.
search telusplanet.net
nameserver 198.80.55.1
nameserver 198.161.156.1

  You can try this if you choose, but I'm not sure if Telus allows connections to their name servers from outside their network.

Your's should contain something like
search mediaone.com
nameserver (the one found from winipcfg on the windows machine)
nameserver (another one found there too by clicking on the triple dot "..." button)


As for running tcpdump, it might not be in your path.  Try the command "whereis tcpdump", or "which tcpdump".  If that doesn't work then you probably didn't install it.  I can't see how that could have happened.

As for the locate command specified above, you must run "updatedb &" first before you can use locate to locate anything.  The '&' tells it to run as a background process.

p.s.
You can use my program with tcpdump to see ASCII characters in every packet.  http://freshmeat.net/appindex/2000/03/05/952305254.html
0
 

Author Comment

by:idadan
ID: 2812942
Tadams, thank you.  It worked.  I'm on linux and online right now.  Thank you everybody else for your help too.  Tadams please submit that comment as the answer and i'll accept it!  Thanks again to everybody for the help.
0
 
LVL 1

Accepted Solution

by:
tadams earned 500 total points
ID: 2814093
Doing as you requested.
0

Featured Post

Command Line Tips and Tricks

The command line is a powerful tool at the disposal of every Linux user. Although Linux distros come with beautiful user interfaces, it's worthwhile to learn the command line because it allows you to do a number of things that you otherwise cannot do from the GUI.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question