Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I am a bit of a newbie to the dns thing so I hope somebody can help me with the following. I am trying to set up a dns ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Posts
    2

    Simple DNS help


    Hi

    I am a bit of a newbie to the dns thing so I hope somebody can help me with the following. I am trying to set up a dns server for a small test network that doesn’t have internet connection. I just want the server provide ip addresses for the hosts on the local network.


    This is my /etc/named.conf file

    options {
    directory "/var/named";
    };

    zone "mydomain.tld" IN {
    type master;
    file "master/mydomain.tld";
    };

    very minimal I know but shouldn’t this be enough just to serve the internal hosts?

    This is the zone file:

    $TTL 86400
    @ IN SOA ns1.mydomain.tld. hostmaster.mydomain.tld. (
    2004100610 ; Serial Number
    21600 ; Refresh time
    3600 ; Retry time
    604800 ; Expire time
    86400 ) ; Minimum TTL


    IN NS mydomain.tld.
    www IN A 10.0.0.2

    I then start named no problems - this is the log:

    starting BIND 9.2.2-P3 -u named
    Oct 7 11:11:21 ns1 named[3901]: using 1 CPU
    Oct 7 11:11:21 ns1 named[3901]: loading configuration from '/etc/named.conf'
    Oct 7 11:11:21 ns1 named[3901]: listening on IPv4 interface lo, 127.0.0.1#53
    Oct 7 11:11:21 ns1 named[3901]: listening on IPv4 interface eth0, 10.0.0.3#53
    Oct 7 11:11:21 ns1 named[3901]: command channel listening on 127.0.0.1#953
    Oct 7 11:11:21 ns1 named[3901]: command channel listening on ::1#953
    Oct 7 11:11:21 ns1 named[3901]: zone mydomain.tld/IN: loaded serial 2004100610
    Oct 7 11:11:21 ns1 named[3901]: running

    But when I try to dig @ 127.0.0.1 on ns1 I get?
    ; <<>> DiG 9.2.2-P3 <<>>
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached

    really hope someone can help

    thanks

  2. #2
    Just Joined!
    Join Date
    Oct 2004
    Posts
    2
    ok the problem is kind of (re)solved.

    It sems to be a problem with dig as nslookup works and and I can ping on the names from other hosts which is all I need.

Posting Permissions

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