[H-GEN] stupid needs help - sudo and hostname
Troy Piggins
troy at piggo.com
Tue Jun 10 21:57:26 EDT 2008
* Murray McAllister wrote :
>
> [snip]
> >> 3: Add something like the following:
> >>
> >> 127.0.0.1 localhost.localdomain localhost netserv
> >>
> >> Hope that helps...
> >
> > Sure does. I'll give that a go. Thanks.
>
> I am still a bit lost on what machine is what. The 'netserv' part
> should be set in /etc/hosts on the machine that you want to be called
> netserv.
This is what it /should/ contain.
-----
$ cat /etc/hosts
127.0.0.1 localhost
192.168.0.1 netserv
-----
But by renaming it to /etc/hosts.ORIG there was a brief period
where there was /no/ hosts file. That's when the problem arose.
> In case you don't already know, the format of /etc/hosts is:
>
> ip address fully qualified domain name aliases
>
> I don't think there is a limit on aliases. In the example above,
> 'localhost' and 'netserv' will both resolve to 127.0.0.1
Thanks again.
Can't test it out until tonight.
--
Troy Piggins | http://piggo.com/~troy
RLU#415538 ,-O (o- O
O ) //\ O
`-O V_/_ OOO
More information about the General
mailing list