Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In
Continue with Google
or use


Have an account? Sign In Now

Sign In

Continue with Google
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Network Classmate Logo Network Classmate Logo
Sign InSign Up

Network Classmate

Network Classmate Navigation

  • Home
  • Article
  • Q&A
  • Guest Post
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Feed
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
Home/ Questions/Q 8427
Next
In Process

Network Classmate Latest Questions

Sneha Singh
Sneha SinghLevel 40
Asked: December 12, 20222022-12-12T18:13:23+05:30 2022-12-12T18:13:23+05:30

How To Setup Local Dns Server In Linux?

How To Setup Local Dns Server In Linux?
  • 0
  • 2 2 Answers
  • 24 Views
  • 0 Followers
Answer
Share
  • Facebook

    Related Questions

    • How to Fix USB 3.0 Not working?
    • What Do You Mean By Https?
    • How To Check TLS Version On Aix Server?
    • How To Change Permissions For Entire Directory In Linux?
    • What Does The Tracert Command Do?

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. Nilay Sharma
      Nilay Sharma Level 30
      2022-12-12T19:09:58+05:30Added an answer on December 12, 2022 at 7:09 pm

      1. Install BIND: The first step to setting up your own DNS server is to install the Berkeley Internet Name Daemon (BIND). This can be done with the command “sudo apt–get install bind9”.

      2. Configure named.conf: Open the name configuration file using an editor such as vi. This file can typically be found in /etc/bind.

      3. Create Zone Files: The next step is to create a zone file for each domain you want your server to host. These zone files will contain information about the domain such as IP address mappings and other records.

      4. Set Up Reverse DNS Lookup: This is necessary to provide reverse DNS lookups. To do this, you need to create a file for each IP address range that will require reverse DNS.

      5. Create a Listen–on Statement: To ensure that your DNS server is accessible to your network, you will need to add a listen–on statement to designate an IP address and port on which the server will listen.

      6. Test Your DNS Server: You should now test the server by running a few basic DNS queries. If all works correctly, you’re finished and your DNS server is now up and running.

      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • Select as best answer
    2. Sachin Gautam
      Sachin Gautam Bronze
      2022-12-12T19:25:18+05:30Added an answer on December 12, 2022 at 7:25 pm

      1. Install the DNS server software:

      For Ubuntu/Debian users:

      sudo apt-get install bind9

      For Red Hat/CentOS users:

      sudo yum install bind

      2. Configure the DNS server:

      Edit the configuration files for the DNS server.

      For Ubuntu/Debian users:

      sudo nano /etc/bind/named.conf.local

      For Red Hat/CentOS users:

      sudo nano /etc/named.conf

      Add the following lines to the configuration file:

      zone “example.com” {
      type master;
      file “/etc/bind/db.example.com”;
      };

      3. Create the zone files:

      Create a file for each domain you are hosting.

      For Ubuntu/Debian users:

      sudo nano /etc/bind/db.example.com

      For Red Hat/CentOS users:

      sudo nano /var/named/db.example.com

      Add the following lines to the file:

      $TTL 86400
      @ IN SOA ns1.example.com. hostmaster.example.com. (
      1 ; serial
      3600 ; refresh
      1800 ; retry
      604800 ; expire
      86400 ) ; minimum
      IN NS ns1.example.com.
      IN NS ns2.example.com.
      IN A 192.168.1.1
      IN MX 10 mail.example.com.

      4. Restart the DNS server:

      For Ubuntu/Debian users:

      sudo /etc/init.d/bind9 restart

      For Red Hat/CentOS users:

      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • Select as best answer

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Top Members

    Shailendra Yadav

    Shailendra Yadav

    • 2k Questions
    • 52k Points
    Level 50
    Sneha Singh

    Sneha Singh

    • 2k Questions
    • 41k Points
    Level 40
    Nilay Sharma

    Nilay Sharma

    • 0 Questions
    • 33k Points
    Level 30
    • Popular
    • Comments
    • Farwa Khalid

      Half Duplex Versus Full Duplex

      • 3 Comments
    • Shailendra Yadav

      Troubleshooting with TR-069 ACS for ISPs 

      • 0 Comments
    • Farwa Khalid

      What Is Ping Spoofing

      • 0 Comments
    • Farwa Khalid

      What Is Wireless Isolation?

      • 0 Comments
    • Farwa Khalid

      What Is Radio Network Controller?

      • 0 Comments
    • What is Circuit Switching - Network Classmate
      What is Circuit Switching - Network Classmate added a comment […] needs to be established. It is additive into two… November 30, 2022 at 11:36 am
    • Difference Between Router And Switch - Network Classmate
      Difference Between Router And Switch - Network Classmate added a comment […] router works in the full-duplex transmission mode. However, we… November 30, 2022 at 11:36 am
    • Communication Protocols - Network Classmate
      Communication Protocols - Network Classmate added a comment […] receiver. It is two wired protocols. Rx and Tx… November 30, 2022 at 11:35 am

    • Home
    • Groups page
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges




    Footer

    Important Links

    • Home
    • Article
    • Q&A
    • Guest Post

    Useful Categories

    • Basic Networking
    • Basic Security
    • CCNA R & S
    • CCNA Security
    • Download

    Legal Stuff

    • About Us
    • Contact Us
    • Privacy Policy
    • Terms of Service
    • User Data Policy

    Social Links

    • Facebook
    • Instagram
    • Twitter
    • Telegram
    • Linkedin

    Copyrights © 2023 Network Classmate™. All Rights Reserved.
    Designed by LeadsNut