[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Strange thing with HOSTNAME
- From: Bruce Richardson <brichardson lineone net>
- To: "'redhat-list redhat com'" <redhat-list redhat com>
- Subject: RE: Strange thing with HOSTNAME
- Date: Tue, 8 Dec 1998 21:13:36 -0000
Iztok Polanic wrote:
>Hello !!!
No need to shout.
>127.0.0.1 localhost localhost.localdomain
>127.0.0.1 alpha alpha.computers.org
>That's my /etc/hosts. When I type 'hostname -f' I get 'alpha'. OK. But
>when I type 'hostname -d' I also get alpha. And the same thing happend
>when I type 'hostname -f'.
>How come?
Any network only has one host per ip address (although a host may be in
more than one network, with a different ip address on each). The look-up
procedure is only going to return one name.
If you need alpha to have an ip address, give it a Class C address. For
extra robustness, put the network ip addresses (xxxx.xxxx.xxxx.0) for
localdomain and computers.org in /etc/networks.
It's probably not a good idea to use a real top-level domain. Why not
knock off the org and just use alpha.computers ?
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]