Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to test DNS as local only


    I'm currently studying dns. I installed bind-9.x in my Redhat server and it is chrooted. It doesn't have valid domain as it was only part of local network but it has Internet connection. Its now up as I check the /var/log/messages and port 53 is up. How can i configure a sample domain if its running?

  2. #2
    Here is the named.conf and zone file

    named.conf

    options {
    directory "/etc/namedb/";
    pid-file "/var/run/named.pid";
    statistics-file "/chroot/named/var/run/named.stats";
    allow-query { any; };
    listen-on port 53 { 10.0.1.14; };
    };


    zone "." {
    type hint;
    file "named.cache";
    };

    zone "foo.com" {
    type master;
    file "db.foo.com";
    };

    zone "0.0.10.in-addr.arpa" {
    type master;
    file "pri.0.0.10.in-addr.arpa";
    };

    ZONE (db.foo.com)

    @ IN SOA foo.com. root.localhost. (
    2007050900; serial
    28800; refresh, seconds
    7200; retry, seconds
    604800; expire, seconds
    86400 ); minimum, seconds
    ;

    NS foo.com.; # This is my local server

    mrtg.foo.com. A 10.0.1.14
    www A 10.0.1.14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •