Help setting a DNS server.

Danny Mayer mayer at gis.net
Tue Aug 17 14:52:29 UTC 2004


At 10:41 AM 8/17/2004, Wagner Garcia Campagner wrote:
>Hello,
>
>I've read the DNS How-to a few times and i'm trying to implement a DNS
>server.
>I have a static IP, but i'm trying first just a caching server.
>My configuration is as follows:
>
>##############################
>/etc/named.conf
>
>// Config file for caching only name server
>//
>
>options {
>         directory "/var/named";
>
>         // query-source port 53;
>};
>
>controls {
>         inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
>};
>
>
>zone "." {
>         type hint;
>         file "named.ca";
>};
>
>zone "0.0.127.in-addr.arpa" {
>         type master;
>         file "named.local";
>};
>
>include "/etc/rndc.key";
>################################
>
>################################
>/var/named/named.local
>
>$TTL 3D
>@               IN      SOA     ns.linux.bogus. hostmaster.linux.bogus. (
>                                 2004081701       ; Serial
>                                 8H      ; Refresh
>                                 2H      ; Retry
>                                 4W      ; Expire
>                                 1D)     ; Minimum TTL
>                         NS      ns.linux.bogus.
>1                       PTR     localhost.
>################################
>
>/etc/resolv.conf
>
>search localhost
>nameserver 127.0.0.1
>##################################
>
>
>When i start named i get the following messages in /var/log/messages
>
>Aug 17 10:38:14 wawa named[9155]: starting BIND 9.2.2-P3 -u named -t
>/var/named/
>chroot
>Aug 17 10:38:14 wawa named[9155]: using 1 CPU
>Aug 17 10:38:14 wawa named[9155]: loading configuration from
>'/etc/named.conf'
>Aug 17 10:38:14 wawa named[9155]: no IPv6 interfaces found
>Aug 17 10:38:14 wawa named[9155]: listening on IPv4 interface lo,
>127.0.0.1#53
>Aug 17 10:38:14 wawa named[9155]: listening on IPv4 interface eth0,
>200.161.16.9
>3#53
>Aug 17 10:38:14 wawa named[9155]: listening on IPv4 interface eth1,
>192.168.10.1
>#53
>Aug 17 10:38:14 wawa named[9155]: command channel listening on=
 127.0.0.1#953
>Aug 17 10:38:14 wawa named[9155]: running
>Aug 17 11:38:14 wawa named: named startup succeeded
>
>
>
>
>
>When i do: dig -x 127.0.0.1 i get:
>
>; <<>> DiG 9.2.2-P3 <<>> -x 127.0.0.1
>;; global options:  printcmd
>;; Got answer:
>;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54524
>;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
>
>;; QUESTION SECTION:
>;1.0.0.127.in-addr.arpa.                IN      PTR
>
>;; AUTHORITY SECTION:
>in-addr.arpa.           10800   IN      SOA     A.ROOT-SERVERS.NET.
>bind.ARIN.NET. 2004081704 1800 900 691200 10800
>
>;; Query time: 2363 msec
>;; SERVER: 127.0.0.1#53(127.0.0.1)
>;; WHEN: Tue Aug 17 11:39:11 1999
>;; MSG SIZE  rcvd: 104
>
>
>
>
>
>Does anybody knows why my DNS is not working?

Well your DNS is not loading the zone files, otherwise it would have=20
appeared in
the log. Verify which named.conf you are acually using.

Danny

>Thanks a lot in advance,
>Wagner
>
>_________________________________________________________________
>MSN Messenger: instale gr=E1tis e converse com seus amigos.
>http://messenger.msn.com.br



More information about the bind-users mailing list