Linux hostname and fqdn (FullyQualifiedDomainName) have been confused for a long time. Today, I will use the script home platform to find out their usage details and share them with you the Linux hostname and fqdn (Fully Qualified Domain Name) I have been confused for a long time. Today I am taking the time to find out the details of their use.
1. Set hostname/fqdn
The Linux hostname and FQDN (Fully qualified Domain Name) have been confusing for a long time, and today they are dedicated to figuring out the details of their use.First, set Hostname/fqdnSetting up hostname in a Linux system is simple, such as:$ hostname florianIf you want to set the FQDN, you need to configure the/etc/hosts.$ cat /etc/hosts127.0.0.1 localhost192.168.1.1 florian.test.com florianThe format
Obtain hostname and fqdn Based on Python Shell.
Linux's hostname and fqdn (Fully Qualified Domain Name) have been confusing for a long time. Today we are dedicated to figuring out their usage details.
1. Set hostname/fqdn
Setting hostname in Linux is very easy, for example:
$ Hostname florian
If you want to set fqdn, Y
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
Many applications will involve FQDNsWhat is the difference between a fqnd and a host that the salt gets to be different?The FQDNYou can ' t change the FQDN (as returned by hostname--fqdn) or the DNS domain name (as returned by DnsDomainName) with this Command. The FQDN ofThe system is the name of the resolver (3) returns for the host name.The Technically:the
FQDN refers to FullQualifiedDomainName. On a Linux host, you must set the/etc/hostname and/etc/hosts files. For example, add a line 10.150.140.103gitlab.bigdata.letv.cngitlab to the/etc/hostname server of my new configuration with gitlab/etc/hosts under
FQDN refers to Full Qualified Domain Name. On a Linux host, you need to set the/etc/hostname and/etc/hosts files.
For example, on my new server
/Etc/host
For some type of setups, if network connections not available during startup process, exim4 takes long time to start. To solve this problem, you must useDC_minimaldnsOption of exim4. you can also configure this feature
Dpkg-reconfigure exim4-config
On Debian based systems. You shoshould answerYesFor the question"Keep number of DNS-queries minimal?"
However, ifHostname -- fqdnCommand doesn't print a full qualified hostname (actually only checked one dot) exim4 gives a warning and dc_minimaldns f
In the past, we had to set up the email system. Currently, the complete FQDN name must be set for Puppet. Different operating systems are different. View [root @ rdo ~] # Hostnamewww [root @ rdo ~] # Hostname-fwww.server110.com to achieve this effect, you need to modify the two files to edit/etc/sysconfig/ne before engaging in the mail system, this is the content that must be set. Currently, the complete FQDN
1. vim/etc/httpd/conf.d/vhost1.conf Create the Vhost1.conf file and enter the following contentServerName www1.magedu.comDocumentroot/data/vhosts/www1Customlog Logs/www1-access_log combined2. vim/etc/httpd/conf.d/vhost2.conf Create the Vhost2.conf file and enter the following contentServerName www1.magedu.comDocumentroot/data/vhosts/www1Customlog Logs/www2-access_log combinedUsing HTTPD-T to detect syntax with or without errors3. Another machine edit etc/hosts fileSettings: 192.168.1.28 www1.mag
on Host Name
To implement a VM Based on the host name, the host name must be different. In addition to commenting out the line corresponding to the DocumentRoot command of the central host in the configuration file, you must also enable the line corresponding to the namevirtualhost command, by default, the name-based virtual host listens on port 80.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/45/53/wKioL1PnSbuQnlxlAAAtHX1nR_c052.jpg "Title =" 2014-08-10 18_24_35-root @ suekin
The FQDN is the abbreviation for fully qualified domain name, meaning the full domain name. For example, if a machine hostname (hostname) is www and the domain suffix is example.com, the FQDN of the host should be www.example.com. In addition, the FQDN is in fact the "." To the end, but most applications and servers allow the last point to be ignored.Linux allows
Set hostname#
In fact I am also curious about why VPS needs to be set hostname. The estimate is for attractiveness, or portability. For example, before setting, hostname-v display is li-memeberxxx and so on, set up, the host name appears personalized, another change server, host name will not change-this is just my guess.OpenSUSE setting hostname is slightly closer to the Ubuntu section in the Linode tutorial:sudo vi/etc/hostname– creates a hostname file in which to enter the orchid, the name y
only be used within a function are called "local variables".Note: The var keyword is omitted anywhere, and the variables defined are "global variables" (which can be used outside of the function) so, in general, do not omit the var keyword.Assignment Value and assignment address:Assignment value: Used to assign a basic data type (only one value) to a variable.Reference address: Used to assign a composite data type (possibly with multiple values) to a variable. All two variables change at the sa
They have a common advantage is "change the whole, to avoid the input error" What are the two different? Some.The main difference is that the macro definition is done prior to compilation, and the const is processed during the compilation phaseMacros define constants that do not occupy memory cells and are defined by const occupy memory unitsA macro definition has the same effect as a const constant-----t
//A.cppclassa{ Public: intFunintx) { return(x*x+ +); } }; voidtt () {}//B.cppclassa{ Public: intFunintx); }; voidtt (); intyy () {TT (); A; returnA.fun (3); }Compile them and then link them separately:A link error was displayed because a reference to A::fun (int) could not be found in B.cpp (B.O).Change the a.cpp above to read as follows:Class a{ public: int fun (intint A:: Fun (int x) { return (x*x+); } void tt () { } Compile the a.cpp again wit
(c.defer,32), +, ' RELY ', null), C.mtime, Decode (c.type#, 2, U I.name, 3, ui.name, NULL), Decode (c.type#, 2, Oi.name, 3, oi.name, NULL), Decode (Bitand (C.defer, 256), 256, Decode (c.type#, 4, Case when (Bitand (c.defer,) = or O.status in (3, 5) or Ro.status in (3, 5) and then ' INVALID ' else nul L End, case when (Bitand (C.defer, m) = O.status in (3, 5)) the N ' INVALID ' else null end), NULL), Decode (Bitand (C.defer, (), "DEPEND on VIEW", null) from sys.con$ OC, sys.con$ RC,
OC-class definition and oc-DefinitionWe have already introduced a program HelloWorld: Keep in OC.
The biggest difference between OC and C is that it has the Object-Oriented function. When it comes to object-oriented, we have to talk about the class concept. If we have learned Java, so there is no stranger to the concepts of classes and objects, Because Java is a very pure object-oriented design language. I will not elaborate on the concepts of classe
To write a good C language, a beautiful macro definition is very important. Macro definitions can help us prevent errors, improve code portability and readability, and more.In the software development process, there are often common or common functions or code snippets that can be written as functions or encapsulated as macro definitions. So is the function good or the macro definition good? This requires u
Address: http://wt.vankeweekly.com/blog/%B4%F3%CA% AB /articles/11884.html
Causal relationship, inus definition, and suppes Definition
We know that causal relationships are very important for us to think about any problem and do anything. Many people even think that the causal association ability of talent is one of the first conditions for human beings to become a "Everlasting thing. In philosophy, there a
I. Issues/Needs
Scene:
The client displays data from the server side;
There are many data items (item), and may increase or decrease;
The definition (definition) of each data item may also change
The display of data will be based on its definition
Analysis:
Although the definition may change, the frequency is re
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.