LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-01-2006, 01:23 AM   #1
binister
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian (etch)
Posts: 6

Rep: Reputation: 0
Can't access server using hostname from other PCs on the local network


I installed Debian (etch) with the basic install and was able to ping/ssh to the server from my Windows PC using the hostname I set up.

I then installed Shorewall (firewall program) on my Debian server and disabled all incoming ports except SSH.

Now I can't access my Debian server using its hostname, but I can access it using its IP address.

Which service do I need to enable for this to work again?

FWIW, adding the hostname to my Windows box hosts file worked as expected.
 
Old 09-01-2006, 01:37 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
no service just add it to /etc/hosts
 
Old 09-01-2006, 01:38 AM   #3
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
Quote:
Originally Posted by odcheck
no service just add it to /etc/hosts
You mean that you could before you enabled firewall?
 
Old 09-01-2006, 01:45 AM   #4
binister
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian (etch)
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by odcheck
no service just add it to /etc/hosts
It is already in my /etc/hosts file on my Debian server but I don't think that would solve my problem.

The problem is the Windows machine can't resolve the Debian hostname to an IP. Adding something to the Debian /etc/hosts file won't affect the Windows PC will it?

In any case, I swear this was all working before I installed Shorewall so I must have closed off port.

I'll try turning Shorewall off and trying it again.
 
Old 09-01-2006, 01:52 AM   #5
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
This is of course an option.
Of course setting an entry in your Debian /etc/hosts doesn't have a effect on the host resolve name of windows.
Also It's maybe an option setup a samba server to act as wins server.
And you could try enable NETBIOS over TCP/IP within Win.
 
Old 09-01-2006, 03:13 AM   #6
keyF
Member
 
Registered: Jan 2006
Location: Moscow
Distribution: Debian, RHEL, FreeBSD, CentOS
Posts: 38

Rep: Reputation: 15
do you have DNS servers configured on ur Windows PC? What are they?
Seems like windows pc can't resolve ur linux box name.
in context of installing firewall i can guess that ur win PC tries to query dns server installed on ur Linux PC and cannot because of firewall, but it is only guess.

Windows can resolve names via three methods - dns, netbios, local hosts files. to answer newbios queries linux box should have samba installed.

anyway, you can add an entry to hosts file, but on your _Windows_ pc. it is located at $windir$\system32\drivers\etc\hosts (where $windir$ - folder where your copy of windows is installed). and this should solve the name resolution trouble.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Access by Name to VS-ftpd using Local Network! honey bee Linux - Networking 1 01-19-2006 07:34 PM
Local network can't access Internet (Server can) Notwerk Linux - Networking 2 12-15-2005 03:19 AM
Local Network access problem morbius Suse/Novell 3 06-17-2005 08:45 AM
Can't access external server from local network newuser455 Linux - Networking 7 05-30-2005 12:47 AM
Can't access external server from local network newuser455 Linux - Networking 4 11-26-2004 02:09 PM


All times are GMT -5. The time now is 04:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration