Local DNS does not query

Jeff Reasoner jeff.reasoner at mail.hccanet.org
Fri Dec 2 14:15:06 UTC 2005


That's because in your zone file you have:

www	CNAME	82.195.135.192

Make it an A record and reload the zone. Or change the IP address to a
valid hostname.

On Fri, 2005-12-02 at 08:58, Chris Boyd wrote:
> I've sorted it now.
> 
> zone "usit.ie" in {
>         type slave;
>         file "usit.zone";
>         allow-query {any;};
>         masters { 82.195.146.192;};
>         notify no;
> };
> 
> Only problem I'm having now is the following 
> 
> dig www.usit.ie @10.133.1.230
> 
> ;; QUESTION SECTION:
> ;www.usit.ie.                   IN      A
> 
> ;; ANSWER SECTION:
> www.usit.ie.            259200  IN      CNAME   82.195.135.192.usit.ie.
> 82.195.135.192.usit.ie. 259200  IN      A       82.195.135.195
> 
> ;; AUTHORITY SECTION:
> usit.ie.                259200  IN      NS      ns3.rack365.com.
> usit.ie.                259200  IN      NS      ns1.usit.ie.
> 
> ;; ADDITIONAL SECTION:
> ns1.usit.ie.            259200  IN      A       10.133.1.230
> 
> I'm not sure why it's appending usit.ie to eveything 
> 
> usit.zone file:
> 
> $TTL 3D
> @                       IN      SOA     ns1.usit.ie. admin.usit.ie. (
>                                 17      ; Serial
>                                 10800           ; Refresh
>                                 3600            ; Retry
>                                 604800          ; Expire
>                                 86400 )         ; Minimum TTL
> ;
>                         NS      ns1
>                         NS      ns3.rack365.com.
>                         MX      10 mail.usit.ie.
>                         MX      20 relay.esat.net.
> ;
> ns1                     A       10.133.1.230
> partone                 A       169.254.1.62
> travelquest             A       10.1.7.199
> proxy                   A       10.133.1.45
> intranet                A       82.195.135.199
> canada.usit.ie.         A       82.195.135.195
> usit.ie.                A       82.195.135.192
> *.usit.ie.              A       82.195.135.195
> boards.usit.ie.         A       82.195.135.195
> mail.usit.ie.           A       82.195.131.99
> webmail.usit.ie.        A       10.133.1.51
> gwise.usit.ie.          A       10.133.1.51
> smtp.usit.ie.           A       10.133.1.49
> www                     CNAME   82.195.135.192
> 
> 
> 
> >>> Mark Andrews <Mark_Andrews at isc.org> 12/01/05 8:37  >>>
> 
> > I set up my local dns as a slave. Now when i restart it looks like the master
> >  is denying my slave. I get the following messages after restart
> > 
> > named[18752]: zone usit.ie/IN: refused notify from non-master: 10.133.1.230#5
> > 3
>  
> 	ns0.usit.ie != ns3.rack365.com so a notify is sent.
> 
> 	You don't need to worry about this.
> 
> > >>> Mark Andrews <Mark_Andrews at isc.org> 12/01/05 12:52  >>>
> > 
> > > I'm not all that up on DNS but I thought that if the local dns could not fi
> > nd
> > >  a record it would search the forwarders and then root. 
> > > Now I can get an A record in dig for everything on the local server as well
> >  a
> > > s any other domain. I cannot, however, get it to resolve for usit addresses
> >  (
> > > like intranet.usit.ie) outside the local dns server. 
> > > Here's my config:
> > > 
> > > named.conf 
> > > options {
> > > 
> > >         # The directory statement defines the name server's working directo
> > ry
> > > 
> > >         directory "/var/lib/named";
> > > 
> > >         
> > >         dump-file "/var/log/named_dump.db";
> > >         statistics-file "/var/log/named.stats";
> > > 
> > >         
> > >         forwarders { 82.195.128.132; 82.195.128.192;};
> > >  query-source address * port 53;
> > >         transfer-source * port 53;
> > >         notify-source * port 53;
> > > 
> > >         # The allow-query record contains a list of networks or IP addresse
> > s
> > >         # to accept and deny queries from. The default is to allow queries
> > >         # from all hosts.
> > > 
> > >         allow-query { 127.0.0.1; 10.133.0.0/16;};
> > > 
> > >         notify yes;
> > > };
> > > 
> > > zone "." in {
> > >         type hint;
> > >         file "root.hint";
> > > };
> > > 
> > > zone "localhost" in {
> > >         type master;
> > >         file "localhost.zone";
> > > };
> > > 
> > > zone "0.0.127.in-addr.arpa" in {
> > >         type master;
> > >         file "127.0.0.zone";
> > > };
> > > zone "usit.ie" in {
> > >         type master;
> > >         file "usit.zone";
> > >         #allow-query {10.133.1.230;};
> > > };
> > > 
> > > usit.zone:
> > > 
> > > $ORIGIN usit.ie.
> > > $TTL 3D
> > > @                       IN      SOA     ns3.rack365.com. admin.usit.ie. (
> > >                                 10      ; Serial
> > >                                 10800           ; Refresh
> > >                                 3600            ; Retry
> > >                                 604800          ; Expire
> > >                                 86400 )         ; Minimum TTL
> > > ;
> > >                         NS      ns1
> > > ;
> > > ns1                     A       10.133.1.230
> > > partone                 A       169.254.1.62
> > > travelquest             A       10.1.7.199
> > > proxy                   A       10.133.1.45
> > > 
> > > dig output for "intranet.usit.ie"
> > > 
> > > ; <<>> DiG 9.3.1 <<>> intranet.usit.ie
> > > ;; global options:  printcmd
> > > ;; Got answer:
> > > ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8984
> > > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> > > 
> > > ;; QUESTION SECTION:
> > > ;intranet.usit.ie.              IN      A
> > > 
> > > ;; AUTHORITY SECTION:
> > > usit.ie.                86400   IN      SOA     ns3.rack365.com. admin.usit
> > .i
> > > e. 10 10800 3600 604800 86400
> > > 
> > > ;; Query time: 2 msec
> > > ;; SERVER: 10.133.1.230#53(10.133.1.230)
> > > ;; WHEN: Thu Dec  1 12:28:49 2005
> > > ;; MSG SIZE  rcvd: 91
> > 
> > 	When you declare a master/slave zone you are telling the
> > 	nameserver that it knows *everything* about the zone.
> > 	
> > --
> > Mark Andrews, ISC
> > 1 Seymour St., Dundas Valley, NSW 2117, Australia
> > PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org 
> > 
> > 
> > 
> > 
> --
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org
> 
> 



More information about the bind-users mailing list