LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-13-2002, 11:48 PM   #1
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Rep: Reputation: 15
/etc/hosts


Im almost up to this bit of the install (Creating the /etc/hosts file) but I dont know what to put down.

cat > /etc/hosts << "EOF"
# Begin /etc/hosts (network card version)

127.0.0.1 localhost.localdomain localhost
192.168.1.15 www.mydomain.org <value of HOSTNAME>

# End /etc/hosts (network card version)
EOF

I want my IP address to be 192.168.1.15, so would the above work?
Im not sure what <value of HOSTNAME> or www.mydomain is used for.

It will just be on my local home network, with a gateway 192.168.1.1
 
Old 11-14-2002, 01:24 AM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
just put whatever you want your domain and hostname to be. you can make it up.... here's mine:

192.168.1.101 adam.org lfs2

You can also put ip addresses here that you use a lot, so that you don't have to look it up via DNS (makes connections a little faster sometimes)

you set the gateway in the /etc/sysconfig/network file. here's mine:

HOSTNAME=lfs2
GATEWAY=192.168.1.1
GATEWAY_IF=eth0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External Hosts Resolve but Local Hosts Do Not kjm9 Linux - Networking 7 11-19-2005 03:51 PM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 01:57 AM
hosts.allow / hosts.deny fistz Linux - Newbie 1 04-19-2001 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration