You are not logged in.

#1 2008-03-15 12:53:27

mata_svada
Member
From: Salzburg, Austria
Registered: 2007-01-31
Posts: 36

Hostname not recognized in LAN

Hey guys!

I'm setting up a File/Groupeware Server in our LAN with Arch on it, replacing an old Debian Server. Right now I'm stuck at getting the Windows and the Debian Server to recognize the new Arch Servers' Hostname. I need this because I'm assigning IP-Addresses dynamically and therefore need to use the Hostname to connect to the server via ssh.

If configured the hostname to be whity in my rc.conf and also added this

127.0.0.1       whity localhost       localhost whity

to /etc/hosts and this

hosts: wins files dns

to my /etc/nsswitch.conf. All Computers in our LAN use the same nameserver but I still can't access the Server via it's hostname (neither ping nor ssh works).

Anyone got an idea what the problem is?

Offline

#2 2008-03-15 14:01:04

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Hostname not recognized in LAN

mata_svada wrote:
127.0.0.1       whity localhost       localhost whity

Whats worked for me in /etc/hosts is:

127.0.0.1        whity.localhost         whity

Yeah ...that's what I meant DkSoul...Thx!

Last edited by bgc1954 (2008-03-17 12:40:12)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#3 2008-03-15 18:02:49

DkSoul
Member
Registered: 2005-11-24
Posts: 34

Re: Hostname not recognized in LAN

You must add the name/ip to the nameserver and change your /etc/hosts to something like:

127.0.0.1        localhost.localdomain        localhost
127.0.0.1        whity.localdomain            whity

Offline

Board footer

Powered by FluxBB