Domain Name System In Unix
Hostname is the program that is used to either set or display the current host domain or node name of the system.
Domain name system in unix. When called without any arguments hostname displays the name of the system as returned by the gethostname function. Hostname show or set the system s host name. It associates various information with domain names assigned to each of the participating entities. In addition to sending data processes may send file descriptors across a unix.
When called with one argument or with the file option hostname will set the system s hostname using the sethostname function. Unix domain sockets may use the file system as their address name space. A hostname show or set the system s host name b domainname show or set the system s nis yp domain name c dnsdomainname show the system s dns domain name d nisdomainname show or set system s nis yp domain name e ypdomainname show or set the system s nis yp domain name. Some operating systems like linux offer additional namespaces processes reference unix domain sockets as file system inodes so two processes can communicate by opening the same socket.
Berkeley internet name domain bind is the most commonly used dns server on the internet especially on unix like systems. Hostname is used to display the system s dns name and to display or set its hostname or nis network information services domain name. For such a scenario you have to configure the domain name for your linux server. A domain name system dns server or name server is used to resolve an ip address to a hostname or vice versa.
Most prominently it translates more readily memorized domain names to the numerical ip addresses needed for locating and. The domain name system dns is a hierarchical and decentralized naming system for computers services or other resources connected to the internet or a private network. We will walk you through steps that need to be taken to the setup domain name on your linux server. A alias display the alias name of the host if used.
A both linux unix comes with the following utilities to display hostname domain name.