hostname problem
i am setting up samba, i can ping windows to linux ip but not hostname. on linux to windows i can ping ip and hostname. have i changed the right files? the error i get when trying to enter linux through windows is "cant find path" so im thinking it might have something to do with the hostname?????????? the hostname is changed so far as i can tell. except when i try to ping the hostname. i read somewhere to change the resolv.conf but still the same error
thanks does redhat 8 have firewall setting that i have to change??? i have just ping the old hostname and it timed out?? i must have not changed the hostname properly? anyone know the files that i have to modify for redhat 8 |
the hostname is set by the command..
hostname name pinging by hostname requires the dns server your using to know the address of the name your pinging unless your pinging locally. If you don't want to use dns you will need to add the hostnames and ip addresses to the files /etc/resolv.conf in linux, and hosts in windows . |
my network is connected through a cross over cable( only 2 comps) im not sure what type of network it is called. is it locally?
im not sure how linux dns works but its pinging my windows comp (hostname and ip). my windows comp cant ping my linux comp (hostname) but can ping the ip. i left the dns blank in windows cause i dont know how to set it. is this the problem? and how do i set it? thanks |
you can run bind on the linux box and use it for dns, or just add the hosts to the hosts file
when I say locally I mean on the box named rufus type this ping rufus |
if i want windows to recognise the hostname of my linux comp. could i just add the linux comp ip address in the dns text box for winxp? or does the dns have to be something different. i just want windows to recognise the hostname of my linux comp.
|
no you add it to your hosts file
dns must have a dns server |
my hosts file is
127.0.0.1 bmlinux localhost.localdomain localhost 192.168.1.2 bmlinux is there something wrong with this /etc/hosts file i have also created a file called /etc/hostname which has bmlinux.localdomain i have also changed /etc/sysconfig/network to HOSTNAME=bmlinux.localdaomain can you see anything i have done wrong???? thanks |
That's not what I meant.
For windows to access linux by name (I thought that was the problem) on the windows machine without a valid dns entry you need to add the linux computers ip address and hostname to the hosts file It needs to be in the path, the most common place to put it is in c:\hosts or c:\windows\hosts see c:\windows\hosts.sam for a sample |
i found a file on windows called c:\WINDOWS\system32\drivers\etc
# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost 192.168.1.2 bmlinux.localdomain i added bmlinux.localdomain is this correct?? thanks |
you can use that name now,
try this ping bmlinux.localdomain |
thanks heaps its finally working. yeah(sigh of relief). i have a different prob now. and i posted it in software. just keep eliminating until theres no more probs. thanks david
|
cool
your welcome |
All times are GMT -5. The time now is 11:53 PM. |