Subj : Re: Giving a name to my linux box To : comp.os.linux From : Thomas D. Shepard Date : Sat Jun 26 2004 12:53 pm Note that there have been two kinds of solutions posted. Using hostname allows your own computer to know its own name. Using resolv.conf allows your own computer to resolve its own fully-qualified domain name (or partially qualified depending on how you do it). If you want OTHER computers to know your computers name, you need to set up their domain-name resolution too. That can be done by means of resolv.conf or by running a DNS server. You will need to read a bit of documentation on all of this. There are numerous pitfalls. For example, depending on how your name resolution is set up, your computer may completely ignore the contents of /etc/resolv.conf. Other things that might be relevant include NIS, netinfo, and lookupd. On Thu, 17 Jun 2004 09:40:19 +0200, Gerard wrote: > On 16 Jun 2004 22:37:36 -0700, karthik bala guru scribbled: > >> Hi, >> I have been able to set the IP address for my comp. But i would >> like to know the tricks to give a Name to My computer so that i could >> refer to it without using any kind of IP address. >> >> Regards, >> karthik bala guru >> linladn@yahoo.co.in > > You would typically use a file called /etc/hosts, here's a part of mine: > 127.0.0.1 localhost > 10.0.0.1 jacob jacob.prodeo > 10.0.0.2 manasse manasse.prodeo > 10.0.0.3 benjamin benjamin.prodeo > 10.0.0.4 levi levi.prodeo > > The first column contains the ip-addresses > The second column the 'simple' names > The third (and further) column(s) may contain nicknames, > as you can see, I use this to be able to name > them by their 'simple' names as well as their > fully qualified names > BTW, prodeo is my internal domain name. > > > Furthermore, there's a file called /etc/resolv.conf, which you want to > contain at least the following line: > > nameserver 127.0.0.1 > > this basically says: this computer is its own DNS. > > HTH -- Thomas D. Shepard Sorry, you can't email me. (Email address is fake.) .