#2369: Set hostname with FQDN
-------------------------------------+--------------------------------------
 Reporter:  d...@…                     |       Owner:  lfs-b...@…               
    
     Type:  task                     |      Status:  new                        
  
 Priority:  normal                   |   Milestone:                             
  
Component:  Bootscripts              |     Version:  SVN                        
  
 Severity:  normal                   |    Keywords:                             
  
-------------------------------------+--------------------------------------

Comment(by bdu...@…):

 I don't think that's it Matt.  What is wanted is something like:

 {{{
 bdu...@lfs6:~$ hostname
 lfs6
 bdu...@lfs6:~$ hostname --fqdn
 lfs6.gdc.com
 }}}

 Using net-tools 1.60 / hostname 1.100 (2001-04-14).

 This is set in /etc/rc.d/init.d/localnet:

 hostname ${HOSTNAME} where HOSTNAME is defined in /etc/sysconfig/network
 as HOSTNAME=lfs6.  The fqdn is picked up from /etc/hosts:

 192.168.0.75  lfs6.gdc.com     lfs6


 From the man page:

 THE FQDN

     You can't change the FQDN (as returned by hostname --fqdn)
 or the DNS domain name (asreturned by dnsdomainname) with this
 command. The FQDN of the system is the name that the resolver(3)
 returns for the host name.

     Technically: The FQDN is the name gethostbyname(2) returns
 for the host name returned by gethostname(2).  The DNS domain
 name is the part after the first dot.

     Therefore it depends on the configuration (usually in
 /etc/host.conf)  how  you  can change  it. Usually (if the
 hosts file is parsed before DNS or NIS) you can change it
 in /etc/hosts.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2369#comment:6>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to