LinuxQuestions.org
Review your favorite Linux distribution.
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 09-05-2013, 06:21 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Win7 & CentOS can't reach server by hostname


In short: Servers running CentOS 6 are accessible by hostname from Linux (LMDE & OpenSuse) clients, but not by Windows7 & CentOS clients.

Setup:
Firewall is pfSense-2.0.3, local servers are added in dns forwarder.
All servers & clients has the firewall as primary dns server.
Firewall name is cto.office.lan, ip 192.168.120.201
Example record in pfSense dns forwarder:
Code:
Host 	Domain  	IP
ctl-db0 	lan  	172.17.4.21
From LMDE:
Code:
ping ctl-db0
PING ctl-db0.lan (172.17.4.21) 56(84) bytes of data.
64 bytes from ctl-db0.lan (172.17.4.21): icmp_seq=1 ttl=64 time=0.165 ms
From Windows 7: (translated from Swedish)
Code:
ping ctl-db0
Could not find host ctl-db0.
BUT!
Code:
nslookup ctl-db0
Server:  cto.office.lan
Address:  192.168.120.201

Namn:    ctl-db0
Address:  172.17.4.21
Using FQDN ("ping ctl-db0.lan") it works fine.

We have several servers and it's the same for all of them so it can't be a caching issue.
All servers have static ip, all added to dns forwarder.
The server used above is a Xen guest on a separate subnet, routed via Xen host.
Other servers are on same subnet as firewalls LAN - 192.168.120.0/24 - it's the same issue with them.

I did empty both arp & dns-cache in Win7 just to make sure.
I also installed samba and started smb & nmb in CentOS-server.
 
Old 09-05-2013, 04:26 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
Is ping blocked?
 
Old 09-05-2013, 04:48 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
what security setting is your SELinux set to? Have you tried setting SELinux to permissive? DO NOT DISABLE SELinux.
 
Old 09-06-2013, 02:09 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by jefro View Post
Is ping blocked?
"Using FQDN ("ping ctl-db0.lan") it works fine."
 
Old 09-06-2013, 02:11 AM   #5
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by lleb View Post
what security setting is your SELinux set to? Have you tried setting SELinux to permissive? DO NOT DISABLE SELinux.
Yes the setting is permissive - at least om some servers.
But as I can ping by HOSTNAME from Linux clients and by FQDN from Windows, SELinux can not be the problem.
 
  


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
Harddrive partitions win7 and centos how to? manuce Linux - Newbie 14 12-31-2012 09:57 AM
clients CAN resolve hostname of server w/nslookup, but CANNOT access by hostname WTF? psycroptic Linux - Networking 9 11-10-2012 11:24 AM
CentOS Win7 Dual boot on NVRaid (fakeraid) dextermetzger Linux - Hardware 3 06-27-2011 09:17 PM
How to set a route for Eth1 (DHCP clients) to reach Tun0 (openvpn server)? CentOS torontob Linux - Networking 2 09-22-2010 12:14 AM
change hostname of LINUX CentOS 5 while running informix server ytd Linux - General 5 08-11-2009 01:04 AM

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

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