LinuxQuestions.org
Help answer threads with 0 replies.
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 10-28-2015, 07:04 PM   #1
YaoGui
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Rep: Reputation: Disabled
Question no route to host on same subnet


Weird error, and probably related to me being fairly unused to Linux. I've got two systems, both RHEL 7. I've got one setup as a BIND DNS server, and that appears to be working fine. I did a minimal install for the other one.

The DNS server IP is 192.168.0.6
The server with the issue is 192.168.0.2
Gateway is 192.168.0.1. Network mask is 24. The gateway also happens to be a DNS server.

From 0.2,I can ping 0.6 just fine. nslookup to the 0.1 server works as well. DNS queries to 0.6 from 0.2 are failing though. I thought perhaps it was an issue with the DNS server I built, so I loaded the telnet client and tried to connect to 0.6 from 0.2 over port 53, and go a "no route to host" error (which is weird, because the ping worked). Not really sure where to go with this and would appreciate some thoughts. Routing table from 0.2 shows as

default route via 192.168.0.1 Dev eth0 proto static metric 100
192.168.0.0/24 Dev eth0 proto kernel scope link sec 192.168.0.2 metric 100
 
Old 10-28-2015, 09:00 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
ping uses the icmp protocol.
DNS normally uses udp on port 53, with TCP for large queries eg zone file txfrs.
See /etc/services.

Have you checked the firewall on both systems?

Try running tcpdump on 0.6 http://www.rationallyparanoid.com/articles/tcpdump.html
 
1 members found this post helpful.
Old 10-28-2015, 09:30 PM   #3
YaoGui
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thanks for the response. I'd actually finished running nmap on both systems a few minutes ago, and the server I was having an issue with didn't see 53 as an open port on the DNS server, although the DNS server did see it on itself. Ran firewall-config and enabled the DNS service, and now it's working like a champ.
 
Old 10-28-2015, 09:31 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
ICMP may be turned off in the target system. Some systems do that by default.

http://www.linuxchix.org/content/courses/security/icmp
 
  


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
CentOS 6 connect to host 10.1.93.101 port 50001: No route to host tim head Linux - Networking 2 08-16-2015 05:18 AM
AIX add route with subnet yashraj221087 AIX 8 08-11-2013 06:21 AM
telnet: Unable to connect to remote host: No route to host grob115 Linux - Networking 3 07-30-2010 10:18 AM
Starting an Interface without a Default Subnet Route LinuxGeek Linux - Networking 5 08-30-2006 06:46 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM

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

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