Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Configuring Host names & Name resolution

Posted on Oct 17 1. Changing the System HostnameWe can display the Hostname or temporarily modify the systems' fully qualified hostname using the hostname command.The static hostname is normally specified in the /etc/hostname file. To edit the hostname we can use hostnamectl command.2. Configure Name ResolutionName resolution, in the context of computer networking, is the process of translating human-readable domain names into IP addresses. This is a fundamental aspect of how the internet works because it allows us to access websites and services using easy-to-remember domain names like "www.example.com" instead of numeric IP addresses like "192.168.1.1."The stub resolver is used to convert host names to IP addresses or the reverse. It determines where to look based on the configuration of the /etc/nsswitch.conf file. By default, the contents of the /etc/hosts file are checked first. In case an entry isn't found within the /etc/hosts record, by default the stub resolver tries to see up the hostname by using a DNS nameserver. The /etc/resolv.conf file controls how this query is performed:NetworkManager updates the /etc/resolv.conf file using DNS settings in the connection configuration files. Use the nmcli to modify the connections.The default behavior of nmcli con mod ID ipv4.dns IP is to replace any previous DNS settings with the new IP list provided. A + or - symbol in front of the ipv4.dns argument adds or removes an individual entry.3. Testing DNS Name Resolutionhostname command can be used to test DNS connectivity.Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse Karen Payne - Oct 1 Cherry Ramatis - Sep 18 CodeItBro - Oct 2 João Pedro - Aug 29 Once suspended, Randiakm will not be able to comment or publish posts until their suspension is removed. Once unsuspended, randiakm will be able to comment and publish posts again. Once unpublished, all posts by randiakm will become hidden and only accessible to themselves. If randiakm is not suspended, they can still re-publish their posts from their dashboard. Note: Once unpublished, this post will become invisible to the public and only accessible to Randika Madhushan Perera. They can still re-publish the post if they are not suspended. Thanks for keeping DEV Community safe. Here is what you can do to flag randiakm: randiakm consistently posts content that violates DEV Community's code of conduct because it is harassing, offensive or spammy. Unflagging randiakm will restore default visibility to their posts. DEV Community — A constructive and inclusive social network for software developers. With you every step of your journey. Built on Forem — the open source software that powers DEV and other inclusive communities.Made with love and Ruby on Rails. DEV Community © 2016 - 2023. We're a place where coders share, stay up-to-date and grow their careers.



This post first appeared on VedVyas Articles, please read the originial post: here

Share the post

Configuring Host names & Name resolution

×

Subscribe to Vedvyas Articles

Get updates delivered right to your inbox!

Thank you for your subscription

×