Author: Sahil Suri

Configuring a caching only DNS server on Centos 7

Introduction DNS (Domain Name Server) is considered a critical component of any enterprise IT infrastructure. DNS runs as a service on a system and a DNS server can have different roles or we could say that DNS servers can be classified into multiple categories. In this quick article we will explain how to setup a caching only DNS server. This type of DNS server is the easiest to understand and setup. All DNS servers cache their queries but a DNS server that has been put in use for the sole purpose of caching DNS queries is referred to as a caching only DNS server. A caching only DNS server is also called a resolver. It queries DNS information and obtains the required information from other DNS servers (the root DNS servers in our case) and stores the query result in it’s cache for future use. The duration for which the query result remains in the servers’ cache is determined by the TTL value. This will help to reduce the DNS resolution time when the same query is performed again within the TTL window. With a basic understanding of what a caching only DNS server is, let’s configure one on a Centos 7 server. Step 1: Install required packages. To configure our caching only DNS server we will use the BIND package which is the most popular open source DNS...

Read More

28 yum command examples for package management in Linux part 2

In our previous article on the Linux yum command, we covered how we could use the yum package manager to search for packages, install them, query information about packages, check for security updates and update the system to have the latest versions of packages installed. In this article, we’ll show how to use yum to update/downgrade a single package, remove packages and a few other tips and tricks. Update single package using YUM Example 15: We could use yum to update a single or multiple packages instead of installing updates available for every package installed on the system. We accomplish this by using the yum update command followed by the package name. Given below is an example. [root@linuxnix ~]# yum update nfs-utils Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile * base: centos.mirror.snu.edu.in * epel: ftp.riken.jp * extras: centos.mirror.snu.edu.in * updates: centos.mirror.snu.edu.in Resolving Dependencies --> Running transaction check ---> Package nfs-utils.x86_64 1:1.2.3-70.el6 will be updated ---> Package nfs-utils.x86_64 1:1.2.3-75.el6_9 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================ Package Arch Version Repository Size ============================================================ Updating: nfs-utils x86_64 1:1.2.3-75.el6_9 updates 336 k Transaction Summary ============================================================ Upgrade 1 Package(s) Total size: 336 k Is this ok [y/N]: Remove a package using yum Example 16: In order to remove a package from the system via yum, we use the yum remove command followed...

Read More

28 yum command examples for package management in Linux part 1

Introduction For managing software via the command line on our Redhat and Centos systems, we could use rpm directly or use yum which is somewhat of a feature rich front end for rpm. We covered the Linux rpm command and it’s features extensively in an earlier article. Yum is an acronym for yollowdog updater modified. The name yellowdog comes from a distribution of Linux which was focussed on IBMs’ power line of systems in the early 2000s. The yum package manager is an earlier implementation of yep, the package manager used by yellowdog Linux. Yum sitting on top of rpm is the default package management interface for Redhat and Centos systems and older versions of Fedora. After Fedora 22 onwards, yum was switched in favor of dnf and we will cover dnf in a future post. The major advantage of using yum over rpm is that yum manages dependencies for packages automatically. So if a package requires python or ruby or any other package then yum will go out and fetch and install these packages and any other dependencies which are needed by the package that we are trying to install. If you are trying to install a package that has dependencies via rpm, then you need to be aware of those dependencies and have the rpm package files for those dependencies available and installed on the system. We...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.