Results 1 to 7 of 7
Thread: Setting the FQDN hostname?
-
03-25-2004, 06:42 PM #1
Web Hosting Master
- Join Date
- Jul 2003
- Location
- rowland hts, california
- Posts
- 791
Setting the FQDN hostname?
I'm having a bit of trouble setting the FQDN on the new server..
I want it to be the server's hostname.. but this is what I get..
[email protected] [~]# hostname
host
[email protected] [~]# hostname --fqdn
hostname: Unknown host
[email protected] [~]#
How do i set it to something.something.com?
I've tried hostname something.something.com but when I restart, it reverts back. I tried setting it in /etc/hosts, no luck.
Thanksjosh
-
03-25-2004, 08:03 PM #2
Web Hosting Master
- Join Date
- Jul 2002
- Location
- San Luis Obispo, CA
- Posts
- 818
what OS are you on?
-
03-25-2004, 08:14 PM #3
Web Hosting Master
- Join Date
- Jun 2003
- Posts
- 673
Make sure that /etc/hostname has the correct fully-qualified name in it.Code:hostname host.domain.com
-
03-25-2004, 08:20 PM #4
Web Hosting Master
- Join Date
- Jul 2003
- Location
- rowland hts, california
- Posts
- 791
"/etc/hostname" [New File]
anyway..
Im on redhat9josh
-
03-25-2004, 08:22 PM #5
Web Hosting Master
- Join Date
- Jul 2002
- Location
- San Luis Obispo, CA
- Posts
- 818
edit /etc/sysconfig/network
then put HOSTNAME=whatever.yourdomain.com
-
03-25-2004, 08:32 PM #6
Web Hosting Master
- Join Date
- Jun 2003
- Location
- UK
- Posts
- 6,614
Run "hostname your.hostname.com"
That should get it recognised without having to reboot.
Use the method above to save it across reboots
RusRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email [email protected]
-
03-25-2004, 08:35 PM #7
Web Hosting Master
- Join Date
- Jul 2003
- Location
- rowland hts, california
- Posts
- 791
ah great help thanks
josh


Reply With Quote




