Solved

hostname,doman,domainame

Posted on 2003-11-10
3
908 Views
Last Modified: 2010-04-20
please some one inform me what i need to set up on this hostname,doman,domainame while installing the system?...let says my company name is ABC and has a we url at ABC.COM.....so what is the proper way to set the name so in future i can set the mail server...
0
Comment
Question by:learner79
3 Comments
 
LVL 13

Expert Comment

by:td_miles
ID: 9719617
I'm not sure if the question you are asking is how to set the hostname of the server. If it is, then it will probably depend on which Linux distro you are using (RedHat, Mandrake, Suse, debian, etc).

For Redhat, edit the file "/etc/sysconfig/network" and change the HOSTNAME parameter to be what you want your computer to be called.
0
 

Author Comment

by:learner79
ID: 9719627
Redhat
0
 
LVL 12

Accepted Solution

by:
paullamhkg earned 20 total points
ID: 9720029
there is serveral files you will going to add those info depending what you need. the normal files are

/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.1           servername.abc.com    servername
127.0.0.1               localhost.localdomain localhost

/etc/sysconfig/network

NETWORKING=yes
HOSTNAME=servername.abc.com
GATEWAY=192.168.0.254

and if you have the sendmail, in the /etc/mail/sendmail.cf will also need to put your domainname into it

#####  $Id: accept_unresolvable_domains.m4,v 8.10 1999/02/07 07:26:07 gshapiro E
xp $  #####
Cwabc.com
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now