Here's what I did, but I didn't do all of the steps specified.  Is this 
correct?  I want to configure a FQDN for leafnode:


localhost ~ # 
localhost ~ # 
localhost ~ # 
localhost ~ # cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
iface_eth1="dhcp"
dhcpcd_eth1=""
localhost ~ # 
localhost ~ # cat /etc/conf.d/hostname
#HOSTNAME="livecd"
#HOSTNAME="localhost arrakis.doesntexist.org"
HOSTNAME="arrakis"
#HOSTNAME="localhost"
localhost ~ # 
localhost ~ # cat /etc/hosts
# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for 
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be 
# consulted at all; see /etc/host.conf for the resolution order.
#

# IPv4 and IPv6 localhost aliases
#127.0.0.1      localhost
127.0.0.1       localhost.localdomain   localhost
192.168.2.110   arrakis.doesntexist.org arrakis
::1             localhost




#
# Imaginary network.
#10.0.0.2               myname
#10.0.0.3               myfriend
#
# According to RFC 1918, you can use the following IP networks for 
private 
# nets which will never be connected to the Internet:
#
#       10.0.0.0        -   10.255.255.255
#       172.16.0.0      -   172.31.255.255
#       192.168.0.0     -   192.168.255.255
#
# In case you want to be able to connect directly to the Internet (i.e. 
not 
# behind a NAT, ADSL router, etc...), you need real official assigned 
# numbers.  Do not try to invent your own network numbers but instead get 
one 
# from your network provider (if any) or from your regional registry 
(ARIN, 
# APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
localhost ~ # 
localhost ~ # /etc/init.d/net.eth0 restart
 * Caching service 
dependencies ...                                           [ ok ]
 * Stopping 
apache2 ...                                                       [ ok ]
 * Unmounting network 
filesystems ...                                         [ ok ]
 * Stopping eth0
 *   Bringing down eth0
 *     Stopping dhcpcd on 
eth0 ...                                            [ ok ]
 *     Shutting down 
eth0 ...                                                 [ ok ]
 * Starting eth0
 *   Configuration not set for eth0 - assuming DHCP
 *   Bringing up eth0
 *     dhcp
 *       Running 
dhcpcd ...                                                   [ ok ]
 *       eth0 received address 192.168.2.110/24
 * Mounting network 
filesystems ...                                           [ ok ]
 * Starting 
apache2 ...                                                       [ ok ]
localhost ~ # 
localhost ~ # 
localhost ~ # hostname -vf
gethostname()=`arrakis'
Resolving `arrakis' ...
Result: h_name=`arrakis.doesntexist.org'
Result: h_aliases=`arrakis'
Result: h_addr_list=`192.168.2.110'
arrakis.doesntexist.org
localhost ~ # 
localhost ~ # date
Mon Aug 27 19:07:10 PDT 2007
localhost ~ # 
localhost ~ # 



thanks,

Thufir

-- 
[EMAIL PROTECTED] mailing list

Reply via email to