Re: Changing hostname
From: * Tong* (sun_tong_001_at_yahoo.com)
Date: 07/13/04
- Previous message: C. Tresenriter: "making a DVD of Sarge"
- In reply to: * Tong*: "Changing hostname"
- Next in thread: Greg Folkert: "Re: Changing hostname"
- Reply: Greg Folkert: "Re: Changing hostname"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: debian-user@lists.debian.org Date: Tue, 13 Jul 2004 13:29:11 -0400
Thanks everyone for the reply.
I can say that changing the hostname, though seems simple, is the
most convoluted part in Linux. As expressed by Kent West:
,-----
| there may be several places in the /etc directory where it is
| specified in various config files, such as /etc/hosts. There may
| be a squid config file that needs changing also. You might want to
| run something like "grep -r -n cxmr /etc" to find all the
| locations where the filename is used.
`-----
In RedHat, when using linuxconf, all the following files have been
changed. I checked *every one of them* before posting my question.
/etc/hosts
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network
/etc/conf.modules
/etc/conf.linuxconf
/etc/HOSTNAME
/etc/networks
Micha Feigin's comment seems to be the most professional to me:
,-----
| first thing, you host name is merely cxmr. dyndns.org is your
| domain name, not part of your hostname. That should appear in the
| domain directive in your /etc/resolv.conf if you want.
`-----
However, this approach doesn't seem to be necessary to me:
$ cat /etc/hostname
cxmr.dyndns.org
$ cat /etc/resolv.conf
search
nameserver 24....
nameserver 24....
$ hostname
cxmr.dyndns.org
$ hostname --fqdn
cxmr.dyndns.org
$ dnsdomainname
dyndns.org
You see, everything seems to be fine. (!?)
Paul Johnson's comment makes me think that changing the hostname
is far from simple:
,-----
| > 127.0.0.1 cxmr.dyndns.org localhost
|
| 127.0.0.1 localhost
| <your-ip> cxmr.dyndns.org cxmr
`-----
That's actually what I want to do. I.e., I want my FQDN reflects
my real IP address, not localhost, but that seems impossible,
because I'm getting a new IP every time I reboot.
Any comments? Thanks
Tong
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: C. Tresenriter: "making a DVD of Sarge"
- In reply to: * Tong*: "Changing hostname"
- Next in thread: Greg Folkert: "Re: Changing hostname"
- Reply: Greg Folkert: "Re: Changing hostname"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|