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 01-14-2005, 10:22 AM   #1
gdeswardt
LQ Newbie
 
Registered: Aug 2003
Location: Ireland
Posts: 3

Rep: Reputation: 0
Hostname


Office setup. We are running 15+ computers with windows on a workgroup with no DNS server, but with a DHCP server. My installation is the first (of hopefullly meany) machines on the network that is running Linux the rest all Windows.

I need to access our Intranet website base on the windows hostname (example "pluto"). Although I can see the machine and in samba it shows up as the hostname, I am not able to access the website running on that machine by its hostname. I can however access the website using the IPAddress, but because it is DHCP setup the IPAddress might change.

When I try and ping the machine based on the hostname

Code:
# ping pluto
I receive the following error

Code:
ping: unknown host pluto
but if I do a nmblookup I do get the IPAddress

Code:
# nmblookup -R pluto
querying pluto on 193.168.2.255
193.168.2.229 pluto<00>
Is there a way I can setup my linux system (Suse 9.2) to resolve the hostname without me having to do a nmblookup?

Any help much appreciated.
 
Old 01-14-2005, 04:04 PM   #2
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
Yes there is. The idea is to add WINS support to your nsswitch.conf file. You're gonna need samba as well. I remember reading an HOWTO about this somewhere but I cannot find the link again. Google up "samba WINS resolution" should help.
Also this link of someone trying to do the same thing than you:
http://lists.samba.org/archive/samba...er/033272.html
 
Old 01-15-2005, 02:23 AM   #3
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 17
you could just add this entry to your /etc/hosts file...

193.168.2.229 pluto
 
  


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
hostname gururaj Linux - Networking 2 01-05-2006 05:02 PM
hostname changes R153-Ab0V3 Linux - Newbie 6 01-10-2004 11:36 PM
Hostname jpauls104 Slackware 5 07-28-2003 12:16 PM
Hostname _maco_ Linux - General 3 07-07-2003 07:44 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

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

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