Simple config

Kevin Darcy kcd at daimlerchrysler.com
Fri Jul 28 22:10:57 UTC 2000


"recursion no" is preventing your nameserver from asking questions of other
nameservers. You need to allow recursion if the nameserver is to be used by
your clients to resolve names outside of your zones.


- Kevin

J.Clayton Greer wrote:

> Hello,
>
> I have read 'the' book'-"DNS and BIND" O'Reilly, faq's, online help, the
> archives, and still have a question....
>
> Do I -need- named ?, is the config below ok (usable and correct?)?  thank
> you for your help!
>
> I have a single box RedHat 6.2, Bind 8.2.2P5, ProFTPD, sendmail-8.10.1.
> I am running my internal net at 192.168.1.1/24 (eth0) and my isdn
> 62.224.188.56/29 (eth1) uswest is doing my primary and secondary dns, have
> forwarding (networks ) and masquerading (ipchains forward eth1) setup, my
> isdn router is 62.224.188.62.  My gateway is set to the router @ .62. All
> clients are NT with an nt DHCP server, default routes on the nt boxes are
> 192.168.1.1 dns pointed to uswest name servers).
>
> I think this is a fairly common setup but I have not seen any specific
> examples for this, witout doing my own DSN or mutiple virtual servers, or 3
> machines with a central hub, etc...
>
> My configuration below does not seem to work, I turned off named and I can
> route to the internet and my mail server is working correctly, but my DNS
> lookups are down, I can not ping anything on the other side of the server
> (MS1).  I had this working before, routing to www.whatever.com from IE5 on
> the workstations (except the mail until I turned off named then the mail is
> fine but dns is down).
>
> When I run named the logs show
> Jul 25 02:36:14 ms1 named[1644]: starting.  named 8.2.2-P5 Mon Feb 28
> 10:17:53 EST 2000
> ^Iroot at porky.devel.redhat.com:/usr/src/bs/BUILD/bind-8.2.2_P5/src/bin/named
> Jul 25 02:36:14 ms1 named[1644]: hint zone "" (IN) loaded (serial 0)
> Jul 25 02:36:14 ms1 named[1644]: Zone "0.0.127.IN-ADDR.ARPA" (file
> db.127.0.0): No default TTL set using SOA minimum instead
> Jul 25 02:36:14 ms1 named[1644]: master zone "0.0.127.IN-ADDR.ARPA" (IN)
> loaded (serial 2000072501)
> Jul 25 02:36:14 ms1 named[1644]: listening on [127.0.0.1].53 (lo)
> Jul 25 02:36:14 ms1 named[1644]: listening on [192.168.1.1].53 (eth0)
> Jul 25 02:36:14 ms1 named[1644]: listening on [63.224.188.57].53 (eth1)
> Jul 25 02:36:14 ms1 named[1644]: Forwarding source address is [0.0.0.0].1031
> Jul 25 02:36:14 ms1 named: named startup succeeded
> Jul 25 02:36:14 ms1 named[1645]: group = 25
> Jul 25 02:36:14 ms1 named[1645]: user = named
> Jul 25 02:36:14 ms1 named[1645]: Ready to answer queries.
>
> I started getting this error : Jul 25 17:42:21 ms1 named[7625]: couldn't
> create pid file '/var/run/named.pid'
> [root at ms1 /var]# dir
> drwxr-xr-x    5 root     root         4.0k Jul 27 23:32 run
>
> [admin at ms1 /etc]$ cat named.conf
> options {
>         directory "/var/named";
>         fetch-glue no;
>         recursion no;
>         notify no;
>         forward first;
>         forwarders{
>                 204.26.64.1;
>                 204.147.80.5;
>         };
>         allow-query{
>                 192.168.1/24;
>                 63.224.188.56/29;
>         };
> };
> zone "0.0.127.IN-ADDR.ARPA"{
>         type master;
>         file "db.127.0.0";
> };
> zone "." {
>         type hint;
>         file "db.cache";
> };
>
> [admin at ms1 named]$ dir
> total 48k
> drwxr-xr-x    2 root     root         4.0k Jul 27 16:52 .
> drwxr-xr-x   24 root     root         4.0k May 11 17:41 ..
> -rw-r--r--    1 root     root          244 Jul 25 15:49 db.127.0.0
> -rw-r--r--    1 root     root         1.6k Jul 27 16:52 db.cache
>
> [admin at ms1 named]$ cat db.127.0.0
> 0.0.127.in-addr.arpa.   IN      SOA     localhost.      root.localhost. (
>                         2000072501 ; serial
>                         28800 ; refresh
>                         7200 ; retry
>                         604800 ; expire
>                         90000 ; default_ttl
>                         )
> 0.0.127.in-addr.arpa.   IN      NS      localhost.
> 1.0.0.127.in-addr.arpa. IN      PTR     localhost.
>
> [admin at ms1 named]$ cat db.cache  #created by dig >newcache; mv newcache
> db.cache
> ; <<>> DiG 8.2 <<>>
> ;; res options: init recurs defnam dnsrch
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
> ;; flags: qr rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
> ;; QUERY SECTION:
> ;;      ., type = NS, class = IN
>
> ;; ANSWER SECTION:
> .                       1d13h39m5s IN NS  D.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  A.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  H.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  C.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  G.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  F.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  B.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  J.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  K.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  L.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  M.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  I.ROOT-SERVERS.NET.
> .                       1d13h39m5s IN NS  E.ROOT-SERVERS.NET.
>
> ;; ADDITIONAL SECTION:
> D.ROOT-SERVERS.NET.     2d13h39m5s IN A  128.8.10.90
> A.ROOT-SERVERS.NET.     2d13h39m5s IN A  198.41.0.4
> H.ROOT-SERVERS.NET.     2d13h39m5s IN A  128.63.2.53
> C.ROOT-SERVERS.NET.     2d13h39m5s IN A  192.33.4.12
> G.ROOT-SERVERS.NET.     2d13h39m5s IN A  192.112.36.4
> F.ROOT-SERVERS.NET.     2d13h39m5s IN A  192.5.5.241
> B.ROOT-SERVERS.NET.     2d13h39m5s IN A  128.9.0.107
> J.ROOT-SERVERS.NET.     2d13h39m5s IN A  198.41.0.10
> K.ROOT-SERVERS.NET.     2d13h39m5s IN A  193.0.14.129
> L.ROOT-SERVERS.NET.     2d13h39m5s IN A  198.32.64.12
> M.ROOT-SERVERS.NET.     2d13h39m5s IN A  202.12.27.33
> I.ROOT-SERVERS.NET.     2d13h39m5s IN A  192.36.148.17
> E.ROOT-SERVERS.NET.     2d13h39m5s IN A  192.203.230.10
>
> ;; Total query time: 1 msec
> ;; FROM: ms1.goodkind.com to SERVER: default -- 192.168.1.1
> ;; WHEN: Mon Jul 24 17:52:34 2000
> ;; MSG SIZE  sent: 17  rcvd: 436






More information about the bind-users mailing list