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 08-14-2011, 01:58 PM   #1
canegames
Member
 
Registered: Mar 2006
Posts: 72

Rep: Reputation: 15
Exclamation Ping: Unknown Host Not Found on Ubuntu 11


Hello,

I am unable to ping hosts via their DNS names using Linux Ubuntu 11.

Resolve.conf has our Cisco RV220W router's IP Address as Primary DNS and this router also handles all DHCP requests. Hosts.allow file has Allow ALL local@"our workgroup name" set as well.


Resolve.conf File Output:
k@cydsk3:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain cnmc
search cnmc
nameserver 192.168.0.220
nameserver 208.67.222.123


End of File


Note: We also utilize various Windows XP,7 workstations that seem to resolve hostnames normally.

Hosts.allow file Output:

# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
All: LOCAL@cnmc

End of File

Network Type: Class C 192.168.0.x /24

Any ideas how to resolve this issue.

Thank you
 
Old 08-14-2011, 02:19 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi,

Just of the top of my head, here: could it be that some hosts dont respond to pings?

Maybe a look in sysctl.conf would relveal net.ipv4.icmp_echo_ignore_all = 1 or something to the like...

Thor
 
Old 08-14-2011, 02:52 PM   #3
canegames
Member
 
Registered: Mar 2006
Posts: 72

Original Poster
Rep: Reputation: 15
Hi Thor

I cannot loclate that file, sysctl.conf. Would implementing a standalone Bind DNS server solve this issue?
 
Old 08-14-2011, 03:05 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Note: We also utilize various Windows XP,7 workstations that seem to resolve hostnames normally.
Are you trying to resolve local hostnames?
Windows uses netbios for this.
You could add all the ip's and hostnames in the /etc/hosts files on linux, or install samba with winbind support
http://www.zulius.com/how-to/resolve...es-from-linux/

Kind regards
 
Old 08-14-2011, 03:07 PM   #5
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
Would implementing a standalone Bind DNS server solve this issue?
Doubtfull. Of course, you could just enter this line at the console

Quote:
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
and the ping should (mileage may vary) be re-esctablished. Alternatively, how about adding this line to /etc/rc.conf instead?
 
Old 08-14-2011, 03:25 PM   #6
canegames
Member
 
Registered: Mar 2006
Posts: 72

Original Poster
Rep: Reputation: 15
No Luck
 
Old 08-14-2011, 03:42 PM   #7
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
No Luck
...hmm, that's not a lot. So, what happens if you ping, what's the reply. IP addresses/netmasks? Did it work before? what's the history?

Just because we're at it...try to ping one of the "silent boxes" directly, via their IP address.

By the way, does the IP come up in the ARP cache?
 
Old 08-14-2011, 03:50 PM   #8
canegames
Member
 
Registered: Mar 2006
Posts: 72

Original Poster
Rep: Reputation: 15
Yes I am trying to resolve just local LAN host by their local hostnames example: server1. Also note: this is an Ubuntu Desktop 11.x 32bit Edition newly install 2 weeks ago via offical Ubuntu.org site.
 
Old 08-14-2011, 04:13 PM   #9
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
okay, let's see if they can be reached somehow. Could you (just as proof of concept) ping one via its IP address, not the name?
 
Old 08-14-2011, 04:19 PM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Originally Posted by canegames View Post
Yes I am trying to resolve just local LAN host by their local hostnames example: server1. Also note: this is an Ubuntu Desktop 11.x 32bit Edition newly install 2 weeks ago via offical Ubuntu.org site.
Use samba, or add the ip's to
/etc/hosts, if they are fixed.

Kind regards
 
  


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
[SOLVED] ping www.google.co.in gives unknown host error ,ping to LAN address works fine aspiring_stellar Linux - Newbie 10 05-24-2011 03:26 PM
Bind9 ,host does reslove a dns name but ping says unknown host Byenary Linux - Networking 10 01-12-2011 01:33 AM
Debian 5 , after SysCp Installation and configure Ping Valure ( ping: unknown host ) brenner23 Linux - Networking 1 07-14-2010 09:01 PM
Cannot ping or wget certain websites in Ubuntu Karmic (unknown host) gianlucaval Linux - Wireless Networking 1 03-23-2010 07:32 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM

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

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