Book Image

CentOS 7 Server Deployment Cookbook

By : Timothy Boronczyk, IRAKLI NADAREISHVILI
Book Image

CentOS 7 Server Deployment Cookbook

By: Timothy Boronczyk, IRAKLI NADAREISHVILI

Overview of this book

CentOS is derived from Red Hat Enterprise Linux (RHEL) sources and is widely used as a Linux server. This book will help you to better configure and manage Linux servers in varying scenarios and business requirements. Starting with installing CentOS, this book will walk you through the networking aspects of CentOS. You will then learn how to manage users and their permissions, software installs, disks, filesystems, and so on. You’ll then see how to secure connection to remotely access a desktop and work with databases. Toward the end, you will find out how to manage DNS, e-mails, web servers, and more. You will also learn to detect threats by monitoring network intrusion. Finally, the book will cover virtualization techniques that will help you make the most of CentOS.
Table of Contents (18 chapters)
CentOS 7 Server Deployment Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Writing a reverse lookup zone file


Until now we've treated DNS requests as forward facing lookups, translating resource names like www.example.com to an IP address. However, services can also ask a DNS server to resolve information in the opposite direction by providing an IP address and want to know what name it's associated with. Reverse lookups such as these are especially useful for logging or authentication and security purposes. For example, a system can query a DNS server to verify that a client really is connecting from the system they claim. To accommodate such requests, this recipe shows you how to write a reverse lookup zone file.

Getting ready

This recipe requires a CentOS system with BIND installed and configured as described in the previous recipes. Administrative privileges are also required, either by logging in with the root account or through the use of sudo.

How to do it...

Follow these steps to add a reverse lookup zone:

  1. Open BIND's configuration file:

    vi /etc/named.conf
    
  2. Add...