Wookey wrote:
> 
> On Fri 11 Jun, Jeff Rauenhorst wrote:
> >
> > Here's my question: I have a local network with DNS running. Whenever it
> > resolves the local names, it starts up diald.  Can I set it up so that it
> > does not attempt to query an outside DNS server when answering local DNS
> > queries?   (I'm running named 8.2)
> 
> 
> There seems to be no way to stop named calling out whenever it feels like
> it (typically several times an hour). The only thing you can do is use
> the lines in the standard.filter, which stop named-named packets bringing
> the link up.
> 

I think i had it working a year ago - but on the other hand, my linuxbox
wasn't on 24x7. My named configuration is attached (and i dont think i
have made any changes (except for to after i changed to another internet
supplier - cablemodems are nice ;-)



> I also find that this set up means that if i turn on the windows machines
> they dial out 6 times an hour trying to do netbios lookups. I could block
> these, or point them at the local nameserver, but sometimes I want to
> look things up off-site so this isn't too great either.

No WINS (as far as i remember...)

> 
> Just to complicate matters I have sveral machines that use dhcp to get
> their addresses. I can't work out how these machines can get their names
> server to anyone. Is there some mechanism for dhcp to add entries to
> /etc/hosts or to tell named which machines have been allocated names, or
> does it all have to be done via samba's name-lookup stuff/wins? (I
> realise this has nothing to do with diald directly, but I ask as it's all
> part of the same set of problems).

I havent got any experience with dhcp....but..
I think that's a combination of configuring the dhcp server with _very_
long timeouts (or renegotiating intervals). That way each dhcp client
will get the same ip each time it connects, and you can put the ip and
name in configuration files for named.
- or maybe the dhcp server has some specialised way to do this show...

> 
> I'd be interested to hear how others have their systems set up to make
> all these things work at once without havng spurious phone calls all the
> time...

Done!

> 
> Wookey
> --
> Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel (00 44) 1223 811679
> work: http://www.aleph1.co.uk/     play: http://www.chaos.org.uk/~wookey/
> 
> -

Jan

-- 
    A train stops at a train station, a bus stops at a bus station.
    On my desk I have a work station...
my linuxbox is called "valhal"
my domain "ja" (dosen't _realy_ exist - so I dont spoil anything)

I have 2 clients named "jan" and "jesper"

valhal has ip: 192.168.1.1
jan has ip: 192.168.1.2
jesper has ip: 192.168.1.3



/etc/named.boot

;
; a caching only nameserver config
;
directory       /var/named
cache           .                       ja.cache
primary         ja                      ja.hosts
primary         1.168.192.in-addr.arpa  ja.rev
forwarders      212.10.10.4 212.10.10.5 212.10.10.3
xfrnets         192.168.1.0



/etc/hosts

127.0.0.1       localhost       localhost.localdomain
192.168.1.1     valhal.ja       valhal



/etc/resolv.conf

search ja
nameserver 192.168.1.1



/var/named/ja.cache

;
;       /etc/named/ja.cache
.       99999999        IN      NS      ns1.stofanet.dk
.       99999999        IN      NS      ns2.stofanet.dk
.       99999999        IN      NS      ns3.stofanet.dk
;
; prep tha cache (hotwire the addresses)
;
ns1.stofanet.dk.        99999999        IN      A       212.10.10.4
ns2.stofanet.dk.        99999999        IN      A       212.10.10.5
ns3.stofanet.dk.        99999999        IN      A       212.10.10.3


/var/named/ja.hosts

;
; /var/named/ja.hosts   Local hosts at ja
;               Origin is ja
;
@               IN      SOA     valhal.ja. root.valhal.ja. (
                                199812302       ; Serial
                                86400           ; Refresh
                                3600            ; Retry
                                3600000         ; Expire
                                604800 )        ; Minimum
                IN      NS      valhal.ja.
; loopback address
localhost       IN      A       127.0.0.1
; other
valhal          IN      A       192.168.1.1
jan             IN      A       192.168.1.2
jesper          IN      A       192.168.1.3

;Aliases
mail            IN      CNAME   valhal
www             IN      CNAME   valhal

;Domain mailing adresses
ja.             IN      MX      10      valhal
ja.             IN      A       192.168.1.1



/var/named/ja.rev

;
; /var/named/ja.rev     Reverse mapping of our IP addresses
;               Origin is 1.168.192.in-addr.arpa.
;
@               IN      SOA     valhal.ja. root.valhal.ja. (
                                199812302       ; Serial
                                86400           ; Refresh
                                3600            ; Retry
                                3600000         ; Expire
                                604800 )        ; Minimum
                IN      NS      valhal.ja.

1               IN      PTR     valhal.ja.
2               IN      PTR     jan.ja.
3               IN      PTR     jesper.ja.

Reply via email to