howto nsd en tant que root server ?

howto nsd en tant que root server ? - Installation - Linux et OS Alternatifs

Marsh Posté le 19-09-2007 à 11:57:47    

Bonjour à tous !
 
J'essaye de configurer nsd en tant que root server afin qu'il puisse résoudre les noms de domaines sur mon réseau local, voici ma configuration:
 
/etc/nsd/nsd.conf
 

Code :
  1. #
  2. # nsd.conf -- the NSD(8) configuration file, nsd.conf(5).
  3. #
  4. # Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
  5. #
  6. # See LICENSE for the license.
  7. #
  8. # This is a comment.
  9. # Sample configuration file
  10. # options for the nsd server
  11. server:
  12.         # uncomment to specify specific interfaces to bind (default all).
  13.         # ip-address: 1.2.3.4
  14.         # ip-address: 12fe::8ef0
  15.         # enable debug mode for nsd, does not fork daemon process.
  16.         # (debug mode disables slave zone functionalities)
  17.         # debug-mode: no
  18.         # listen only on IPv4 connections
  19.         ip4-only: no
  20.         # listen only on IPv6 connections
  21.         # ip6-only: no
  22.         # the database to use
  23.         database: "/etc/nsd/nsd.db"
  24.         # identify the server (CH TXT ID.SERVER entry).
  25.         # identity: "unidentified server"
  26.         # log messages to file. Default to stderr and syslog.
  27.         logfile: "/var/log/nsd.log"
  28.         # Number of NSD servers to fork.
  29.         # server-count: 1
  30.         # Maximum number of concurrent TCP connections per server.
  31.         # tcp-count: 10
  32.         # File to store pid for nsd in.
  33.         pidfile: "/var/run/nsd.pid"
  34.         # port to answer queries on. default is 53.
  35.         port: 53
  36.         # statistics are produced every number of seconds.
  37.         # statistics: 3600
  38.         # Run NSD in a chroot-jail.
  39.         # make sure to have pidfile and database reachable from there.
  40.         # chroot: "/etc/nsd"
  41.         # After binding socket, drop user privileges.
  42.         # can be a username, id or id.gid.
  43.         # username: nsd
  44.         # The directory for zonefile: files.
  45.         zonesdir: "/etc/nsd"
  46.         # The file where incoming zone transfers are stored.
  47.         # run nsd-patch to update zone files, then you can safely delete it.
  48.         # difffile: "/etc/nsd/ixfr.db"
  49.         # The file where secondary zone refresh and expire timeouts are kept.
  50.         # If you delete this file, all secondary zones are forced to be
  51.         # 'refreshing' (as if nsd got a notify).
  52.         # xfrdfile: "/etc/nsd/xfrd.state"
  53.         # Number of seconds between reloads triggered by xfrd.
  54.         # xfrd-reload-timeout: 10
  55.         # Verbosity level.
  56.         # verbosity: 0
  57. # key for zone 1
  58. #key:
  59. #       name: mskey
  60. #       algorithm: hmac-md5
  61. #       secret: "K2tf3TRjvQkVCmJF3/Z9vA=="
  62. # Sample zone 1
  63. #zone:
  64.         #name: "example.com"
  65.         #zonefile: "example.com.zone"
  66.         # This is a slave zone. Masters are listed below.
  67.         # master 1
  68.         #allow-notify: 168.192.44.42 mskey
  69.         #request-xfr: 168.192.44.42 mskey
  70.         # master 2
  71.         #allow-notify: 10.0.0.10 NOKEY
  72.         #request-xfr: 10.0.0.10 NOKEY
  73.         # for a master that only speaks AXFR (like NSD) use
  74.         #allow-notify: 10.0.0.11 NOKEY
  75.         #request-xfr: AXFR 10.0.0.11 NOKEY
  76.         # uncomment to provide AXFR to all the world
  77.         # provide-xfr: 0.0.0.0/0 NOKEY
  78.         # provide-xfr: ::0/0 NOKEY
  79. #zone   .               primary/root.zone


 
nsd.zones:
 

Code :
  1. ;
  2. ; nsd.zones -- a list of the zones to be compiled into the NSD database
  3. ;
  4. ; Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
  5. ;
  6. ; See LICENSE for the license.
  7. ;
  8. ; This is a comment
  9. ; The filenames are relative to ${zonesdir}
  10. ;
  11. ; The masters keyword indicates that the zone should be AXFR'd from appropriate
  12. ; ip-address of the master DNS server on subsquent nsdc(8) update if necessary.
  13. ;
  14. ; The notify keyword will trigger notify messages sent to the given ip-addreses
  15. ; on every NSD database (re)load.
  16. ;
  17. ; zone  name            filename                [ masters/notify ip-address ]
  18. zone    .               primary/root.zone
  19. ;zone   ww.net          primary/ww.net
  20. ;zone   nlnetlabs.nl    secondary/nlnetlabs.nl  masters 213.53.69.1


 
le fichier /etc/nsd/primary/root.zone existe et contient les serveurs root
 
Malheureusement, le serveur ne résoud pas les requetes DNS
J'ai une erreur si j'éxecute nsdc rebuild:
 
[cpp)
zonec: reading zone ".".
error: not configured as a root server
zonec: processed 0 RRs in ".".
 
zonec: done with 0 errors.
[/cpp]
 
 
D'ou vient le problème ?
 
Merci,
RedVivi


Message édité par redvivi le 19-09-2007 à 12:01:28
Reply

Marsh Posté le 19-09-2007 à 11:57:47   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed