LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-19-2005, 01:58 PM   #1
Nox UK
LQ Newbie
 
Registered: Jan 2004
Posts: 12

Rep: Reputation: 0
Can't ping hostnames


Hi,
I have a linksys adsl modem/router/dhcp server that connects 3 computers to each other/internet , and i'm dual booting windows/FC3 on the machine i'm having probs on - its a fairly new instal, but I have been messing about a bit (in an attempt to further my knowledge!) and for testing, pinging hostnames works fines from windows <washes mouth out>

from command prompt,
"ping 192.168.1.100" works fine
"ping floto" doesn't, just says unknown host.

the dhcp table on the linksys box shows the computer names and the addresses assigned to them.

i can also resolve/nslookup external websites fine, but not my internal network machines.

I tried disabling iptables, but i've never touched that (from services prog) but it made no difference.

Any ideas/hints as to where I should start looking? Thanks for any assistance.

Nox
 
Old 04-19-2005, 02:42 PM   #2
beaucoup
Member
 
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Rep: Reputation: 30
The simplest solution in Linux would be to specify your host/IP mappings in the /etc/hosts file. I'm not sure how to manually specify hosts in Windows...

You might try adding 192.168.1.1 (or whatever your router's internal address is) to your DNS server list, though I'm not sure if Linksys routers run internal DNS servers on them.
 
Old 04-19-2005, 03:01 PM   #3
Nox UK
LQ Newbie
 
Registered: Jan 2004
Posts: 12

Original Poster
Rep: Reputation: 0
forget the windows side of things, thats going in the bin when i'm comfortable enough (and works fine anyway with the ping hostname anyway)

I had allready thought about the manually editing the host file, but my dhcp server only has a 3 day lease period, and no way of changing it, it also seems to just give 192.168.1.100 to the first machine requesting it, regardless of lease! then 101 to the second. Tad annoying!

Static ip was the other option, but then i may as well not use dhcp at all :/

Nox
 
Old 04-19-2005, 03:07 PM   #4
beaucoup
Member
 
Registered: Jun 2003
Location: Florence, SC
Distribution: Gentoo i386
Posts: 180

Rep: Reputation: 30
You can't expect consistant dynamic IP distribution from a Linksys box, I'm afraid :P If you really do only have 3 machines on your network, than static IPs may simplify things. Note that this doesn't mean you have to turn your router's DHCP server off; just assign yourself an address outside of it's dynamic range.

For example, I belive Linksys routers by default reserve the range 192.168.1.100 - 192.168.1.149 for DHCP. Static and dynamic IPs, then, can coexist peacefully on the same network as long as you don't staticly assign anything in that range.
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Cannot ping outside hostnames PeterLarsson Linux - Networking 1 08-05-2005 12:37 AM
Client (windows) can't ping hostnames HKDude Linux - Networking 5 05-12-2004 06:14 PM
Can ping MyDNS1.FQDN and IPs but no other hostnames? leecason Linux - Networking 3 10-06-2003 03:01 PM
cannot ping hostnames joadoor Linux - Networking 21 06-10-2003 10:12 AM

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

All times are GMT -5. The time now is 05:58 PM.

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