1. your serving dns on your port 53, internal address
   192.168.1.154, but did you open a hole from your
   external (the real ip) to your dns server?  You
   need responses from the nameservers of the internet
   too (probably explains why you can't go to yahoo.com).
   ..try to port forward both udp/tcp from the outside
   world to your dns server if you havent done it yet.

2. I dont understand your localhost zone; your defining
   hosts in localhost so it appears yur creating ns.localhost
   here.  Also your making server154.xxxx.net SOA for localhost,
   that doesnt look right.  

   I suggest leave the defaults for localhost, and make
   sure at least caching-nameserver functionality works.
   THEN define your own zones separately (if you want your
   own zones).

   if xxxx.net is yours, its better to put that in a 
   separate zone of its own.  If xxxx.net is not yours
   and server154.xxxx.net is yours, then what you want to
   probably do is tell them to delagate NS to you so you
   can build subdomains under server154.xxxx.net (you'll
   need to define your own zone server154.xxxx.net).

[EMAIL PROTECTED] is also wrong, that needs to be gpar.xxxx.net.

jondz


  
> 
> Thanks in advance for your help
> 
> glen
> 
> I have read everything in tldp.org howto for DNS and I can not make my  
> DNS server work. What is wrong with my configuration. What do I need to 
> twik. Here is the story. I wanted to build a DNS server from RH8 so  I 
> can use it in my internal network. After pointing my desktop to 
> 192.168.1.154 as the primary DNS I can not even go to www.yahoo.com. I 
> am use  to pointing to a DNS server of our ISP but I wanted to build one 
> for our network because it is sometimes down. Below is my is 
> configuration. I can do a dig to www.yahoo.com and when I restart named 
> and make a tail here is what I get
> 
> Jun  2 16:52:41 server154 named[1264]: using 1 CPU
> Jun  2 16:52:41 server154 named[1267]: loading configuration from 
> '/etc/named.conf'
> Jun  2 16:52:41 server154 named: named startup succeeded
> Jun  2 16:52:41 server154 named[1267]: no IPv6 interfaces found
> Jun  2 16:52:41 server154 named[1267]: listening on IPv4 interface lo, 
> 127.0.0.1#53
> Jun  2 16:52:41 server154 named[1267]: listening on IPv4 interface eth0, 
> 192.168.1.154#53
> Jun  2 16:52:41 server154 named[1267]: command channel listening on 
> 127.0.0.1#953
> Jun  2 16:52:41 server154 named[1267]: zone 0.0.127.in-addr.arpa/IN: 
> loaded serial 2003052903
> Jun  2 16:52:41 server154 named[1267]: zone localhost/IN: loaded serial 43
> Jun  2 16:52:41 server154 named[1267]: running
> 
> ############################################################################################
> [EMAIL PROTECTED] root]# cat /etc/named.conf
> // generated by named-bootconf.pl
> 
> options {
>        directory "/var/named";
>        /*
>         * If there is a firewall between you and nameservers you want
>         * to talk to, you might need to uncomment the query-source
>         * directive below.  Previous versions of BIND always asked
>         * questions using port 53, but BIND 8.1 uses an unprivileged
>         * port by default.
>         */
>        // query-source address * port 53;
> };
> 
> //
> // a caching only nameserver config
> //
> controls {
>        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
> };
> zone "." IN {
>        type hint;
>        file "named.ca";
> };
> 
> zone "localhost" IN {
>        type master;
>        notify no;
>        file "localhost.zone";
>        allow-update { none; };
> };
> 
> zone "0.0.127.in-addr.arpa" IN {
>        type master;
>        notify no;
>        file "named.local";
>        allow-update { none; };
> };
> 
> include "/etc/rndc.key";
> 
> ##############################################################################################
> 
> [EMAIL PROTECTED] root]# cat /var/named/named.local     $TTL 86400
> @       IN      SOA                   localhost. root.localhost.  (
>                                      2003052903 ; Serial
>                                      28800      ; Refresh
>                                      14400      ; Retry
>                                      3600000    ; Expire
>                                      86400 )    ; Minimum
>        IN      NS                    localhost.
> 1       IN      PTR                   localhost.
> ###################################################################################################
> 
> [EMAIL PROTECTED] root]# cat /var/named/localhost.zone
> $TTL 86400
> @                         IN SOA        server154.xxxx.net. 
> [EMAIL PROTECTED] (
>                                        43              ; serial (d. adams)
>                                        3H              ; refresh
>                                        15M             ; retry
>                                        1W              ; expiry
>                                        1D )            ; minimum
> 
>                         NS             ns
> localhost               A               127.0.0.1
> ns                      A               192.168.1.154
> 
> ######################################################################################################
> 
> --
> Philippine Linux Users' Group (PLUG) Mailing List
> [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
> Official Website: http://plug.linux.org.ph
> Searchable Archives: http://marc.free.net.ph
> .
> To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
> .
> Are you a Linux newbie? To join the newbie list, go to
> http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
> 

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to