How to set domain name in linux
- how to get domain name in linux
- how to check domain name in linux server
- how to get fully qualified domain name in linux
- how to get ip from domain name in linux
How to get domain name from ip address in linux...
hostname command in Linux with examples
hostname command in Linux is used to obtain the DNS (Domain Name System) name and set the system’s hostname or NIS (Network Information System) domain name.
A hostname is a name given to a computer and attached to the network. Its main purpose is to uniquely identify over a network.
Syntax of the `hostname` command in Linux
hostname -[option] [file]Example: We obtain the system hostname by just typing the hostname without any attributes.
hostname
Options | Description | Syntax |
---|---|---|
-a | This option is used to get the alias name of the host system (if any). Command to check domain name in windows 10It will return an empty line if no alias name is set. This option enumerates all configured addresses on all network interfaces. | hostname -a |
-A | This option is used to get all FQDNs (Fully Qualified Domain Name) of the host system. It enumerates all configured addresses on all network interfaces. An output may display the same entries repetitively. | hostname -A |
-b | Used to always set a hostname. Default name is used if none spec
|