Linux DNS Entries

Posted on 2007-10-19
Last Modified: 2013-12-06
Linux Debian or RH.  How do you add an static entry to a dns server
Question by:gordonmann
    LVL 7

    Expert Comment

    best explained by an example i think....

    In /etc/dhcpd.conf add something like:

    group { # id="WORKSTATIONS"

      host Workstation1 {
        hardware ethernet 00:17:6B:51:31:F3;


    under your subnet definition.

    also to get help on the server, type:

    man dhcpd.conf
    LVL 1

    Author Comment

    Not what I had in mind.  I have a P2P VPN and cannot connect to the client via the provided software UNLESS I put an entry into each systems host file.  Which for 800 users is a bit much.

    LVL 19

    Accepted Solution

    @dlangr's example explains how to setup up a static dhcp entry...what you need is to install BIND8 or BIND9 then create a DNS Zone and in that DNS zone create a 'A' entry as needed. You are best of installing Webmin that will help you do some web based administration of Linux DNS..after that you will have to add the Linux server as a DNS server to the client computers ..for more about Linux DNS  
    LVL 19

    Assisted Solution

    If you already have DNS setup copy your zone file and I will edit it for you as for Debian or RH it is the same process with any distro. However the installation is much easier in Debian using apt-get unless you are using Red Hat with a suscribtion and you can do automated installs and updates.
    LVL 40

    Assisted Solution


    I assume that you have bind installed and configured on your server. If you want more info on how to install and configure bind, please see the links provided at the end.

    - To add records to dns server, you need to edit the corresponding zone file for your zone.

    - To find the zone file for your zone, look into your bind configuration file named.conf

    - Edit your zone file to add the required resource record entry. Please see the link below for  bind doc

    - restart your named

    LVL 7

    Expert Comment

    They are right, i misread because i was kindof in a hurry. my apologies.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now