How to view the FQDN

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.