80 Configure Domain Name Linux New
You need to open file etc resolv conf in a text editor like vi or nano and add your name server ip in the below format.
Configure domain name linux. Kernel domainname domainname configure domain name in ubuntu. Finally update your etc hosts file. A domain name system dns server or name server is used to resolve an ip address to a hostname or vice versa.
The dot separates these components. Registering the domain name setting the nameservers to use adding dns records and configuring the hostname and fully qualified domain name fqdn on the server. Output should be hostname domain name.
You can check the fqdn using hostname fqdn or the domain name using dnsdomainname. When you visit a website you type the fqdn fully qualified domain name or the domain name like this. If you are using red hat or fedora linux older version use redhat config network gui tool.
It is usually the hostname followed by the dns domain name the part after the first dot. It s like a phone directory where you query name and you get phone number. Each domain consists of domain components.
Edit your hostname not fqdn in etc hostname file. Grepping out ipv6 addresses your hosts file could look like this. Configure domain name in red hat rhel fedora and centos.
Find out and set up the value for hostname in the file etc sysconfig network. Redhat config network on other hand you can edit a text file. The text com is the top level domain component and google is the second level domain component and www is the third level domain component.