fqdnfully qualified domain name abbreviation, meaning complete domain name.
For example, the console hostname (hostname) www, domain suffix (field) example.com, the host FQDN should be www.example.com. Question, in fact the FQDN "."
At the end, the application server allows you to ignore points. Linux allows users to view and set host names through the hostname command. The user hostname-f commands the host FQDN.
, the FQDN command is not set directly.
In fact, set Linuxfqdn pass two implementations. First,/etc/hostname +/etc/hosts file combination/etc/hostname file set host name, assuming www/etc/hosts file increase row host record, field this host IP address, the second field want to set FQDN, just set Host name, a.b.c.d www.example.com www settings, hostname-f/etc/hostname Update host name. , pass hostname-f see FQDN should: www.example.com second,/etc/hostname +/etc/resolv.conf combination Linux can/etc/hosts file find hostname should record, try Resol v.conf file Host domain name prefix (domain name). For example,/etc/resolv.conf file domain example.com search example.com nameserver w.x.y.z According to the configuration file domain prefix example.com, plus Host name www, Linux tries to splice candidate FQDN:www.example.com.
Candidate FQDN requires progressive validation. Linux pass DNS server w.x.y.z resolves candidate FQDN, parsing failed, FQDN failed. Parse the work, then www.example.com the name of the domain name. said, DNS server records, www.example.com domain name points to Server.example.comCNAME Records, server.example.com only a record.
Return to FQDNserver.example.com, www.example.com.
Linux setting FQDN.