Re: Configuring hostname, domainname, and IP address
From: Baho Utot (baho-utot_at_philippnies-island.org)
Date: 01/02/04
- Next message: noone: "Re: Western Digital Caviar (WDC) drives get along poorly with Linux"
- Previous message: Leon.: "Re: bake-off and ...?"
- In reply to: linuxquestion_at_yahoo.com: "Configuring hostname, domainname, and IP address"
- Next in thread: David Tangye: "Re: Configuring hostname, domainname, and IP address"
- Reply: David Tangye: "Re: Configuring hostname, domainname, and IP address"
- Reply: linuxquestion_at_yahoo.com: "Re: Configuring hostname, domainname, and IP address"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 02 Jan 2004 04:01:00 GMT
linuxquestion@yahoo.com wrote:
> HI,
>
> Sorry to ask another dumb question.
>
> I want to configure my Redhat Advanced server 2.1 to
> into a local network. I plan to have only two nodes.
>
> hostname: red
> ip address: 10.0.0.1
> domainname: testrac.com
>
> hostname: white
> ip address: 10.0.0.2
> domainname: testrac.com
>
> So far, I am only working with the first machine, red.
> I'm trying to get the machine to recognize itself as
> red.testrac.com, at IP 10.0.0.1. On domain: testrac.com
>
>
> I have modified these files:
>
> cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 red red.testrac.com localhost.localdomain localhost
> 10.0.0.1 red red.testrac.com
>
The format is FQDN followed by aliases
This is what it should read instead
127.0.0.1 red.testrac.com red localhost.localdomain localhost
--------------- +++ +++++++++++++++++++++ +++++++++
where ---- is the fully qualified domainname
and ++++ are aliases
>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=red.testrac.com
Ok
> hostname --long
> red
> (odd. Why not the whole name?)
Because the hosts file is barfed
>
>
> domainname
> (none)
Ok
>
> dnsdomainname
> - nothing
Should read
dnsdomainname
testrac.com red
Later Dude
- Next message: noone: "Re: Western Digital Caviar (WDC) drives get along poorly with Linux"
- Previous message: Leon.: "Re: bake-off and ...?"
- In reply to: linuxquestion_at_yahoo.com: "Configuring hostname, domainname, and IP address"
- Next in thread: David Tangye: "Re: Configuring hostname, domainname, and IP address"
- Reply: David Tangye: "Re: Configuring hostname, domainname, and IP address"
- Reply: linuxquestion_at_yahoo.com: "Re: Configuring hostname, domainname, and IP address"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|