LinuxQuestions.org
Help answer threads with 0 replies.
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 03-31-2010, 04:17 PM   #1
mr_andersen
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
ping debian on hostname


Hi.

Can anyone tell me how I can ping my debian computers on their hostname?

I have installed both samba and winbind and I have also changed the line in /etc/nsswitch.conf to:

hosts: files wins dns

I have done the same thing on another linux box (ubuntu) just to see if that worked and it did - I could ping it on the hostname.

Also, I have trid to add the ip/hostname in /etc/hosts and even that didn't work.

The /etc/resolv.conf seems to be as it should.

In the /etc/hostname the hostname is updated.

I have tried to restart the samba service and the networking service and even the entire computer but none of it worked.

Can anyone please let me know what I have forgotten?

\Jan.
 
Old 04-01-2010, 12:41 PM   #2
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
1: Can you browse the Linux SMB shares from Windows OK?
2: In the global section of your smb.conf file have you set your netbios name?
3: Can you 'see' the machine from windows using a dos prompt and NBTSTAT -c
 
Old 04-02-2010, 03:20 PM   #3
mr_andersen
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
It is now working.
I'm not sure what I have done different - installed winbind & samba - changed /etc/nsswitch.conf and vupti it worked.
Wired.

\Jan.
 
  


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
Cannot Ping Hostname videoman Linux - Networking 4 02-07-2009 01:04 PM
Can't Ping By Hostname, Only By IP SoulGrind Linux - Networking 5 10-13-2006 11:28 PM
can ping ip but not hostname mrbabis Linux - Networking 17 06-07-2006 12:26 PM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
Can ping by IP but not by hostname gillesdutertre Linux - Networking 8 09-01-2003 07:59 AM

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

All times are GMT -5. The time now is 01:20 AM.

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