[Bind 9.2] weird config on Mandrake 8.1

Mark_Andrews at isc.org Mark_Andrews at isc.org
Tue Mar 26 22:59:12 UTC 2002


	I suggest that you try the dhcp lists.  See
	http://www.isc.org/services/public/lists/dhcp-lists.html
	Don't forget to check the archives.

	Mark

> Hello
> 
>     our local network consists of a linux server operating the following
> daemons
> 
> Bind 9.2 (Mandrake 8.1) for names resolution
> DHCP 3.0 for dynamic IP adresses attributions
> NIS (ypserv 1.3) for exports of /home directories through NFS
> 
> I also run DHCP-DNS perl scripts for the automatic updates of my named files
> through DHCP
> 
> So what ? in fact, everything works very fine as long as the clients are
> windows and macintosh OS, they find new leases at ease and the update is
> finely tuned by DHCP-DNS
> 
> *********example of a DHCPD lease for a windows client*************
> lease 10.0.0.3 {
> starts 2 2002/03/26 12:33:02;
> ends 3 2002/03/27 12:33:02;
> tstp 3 2002/03/27 12:33:02;
> binding state active;
> next binding state free;
> hardware ethernet 00:02:e3:03:c7:cc;
> uid "\001\000\002\343\003\307\314";
> client-hostname "kalkulator";
> }
> **********************************************************
> 
> ***********example of a DHCPD lease for a macOS client*************
> lease 10.0.0.50 {
> starts 2 2002/03/26 12:40:33;
> ends 3 2002/03/27 12:40:33;
> tstp 3 2002/03/27 12:40:33;
> binding state active;
> next binding state free;
> hardware ethernet 00:05:02:58:cf:64;
> uid "\001\000\005\002X\317d";
> set ddns-rev-name = "50.0.0.10.in-addr.arpa.";
> set ddns-fwd-name = "ZE DISK.estium-concept";
> client-hostname "ZE DISK";
> on expiry or release {
> switch (ns-update (delete (1, 12, ddns-rev-name, null))) {
> case 0:
> unset ddns-rev-name ;
> break;
> }
> switch (ns-update (delete (1, 1, ddns-fwd-name, leased-address))) {
> case 0:
> unset ddns-fwd-name ;
> break;
> }
> on expiry or release;
> }
> }
> **********************************************************
> 
> BUT
> 
> when the client appears to run Linux OS, everything fails: the lease does
> not show client's name and client is unable to access his NFS shared /home
> directory and nslookup is unable to find this machine (zone files are not
> updated by DHCPD DNSmaking it impossible to find by named daemon of course)
> 
> *********example of a DHCPD lease for a windows client*************
> lease 10.0.0.49 {
> starts 2 2002/03/26 13:50:31;
> ends 3 2002/03/27 13:50:31;
> tstp 3 2002/03/27 13:50:31;
> binding state active;
> next binding state free;
> hardware ethernet 00:02:e3:03:c7:cc;
> }
> **********************************************************
> 
> This is probably due to NIS/YP interfering with bind or I do not know what.
> I would really appreciate any help to solve this critical problem.
> 
> **************the /etc/dhcpd.conf file**************************
> subnet 10.0.0.0 netmask 255.255.255.0 {
> # default gateway
> option routers 10.0.0.2;
> option subnet-mask 255.255.255.0;
> option domain-name "estium-concept";
> option domain-name-servers clinux.estium-concept;
> option nis-domain "estium-concept";
> option nis-servers clinux.estium-concept;
> range 10.0.0.3 10.0.0.50;
> default-lease-time 259200;
> host webserver {
> hardware ethernet 00:50:BA:D5:73:44;
> fixed-address 10.0.0.2;
> }
> host ns {
> next-server clinux.estium-concept;
> hardware ethernet 00:50:BA:D5:73:44;
> fixed-address 10.0.0.2;
> }
> }
> ddns-update-style ad-hoc;
> **********************************************************
> 
> **************the /etc/named.conf file**************************
> 
> // generated by named-bootconf.pl
> // secret must be the same as in /etc/rndc.conf
> key "key" {
> algorithm hmac-md5;
> secret
> "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
> };
> controls {
> inet 127.0.0.1 allow { any; } keys { "key"; };
> };
> options {
> pid-file "/var/run/named/named.pid";
> 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;
> forward only;
> forwarders {
> 194.117.200.15;
> 194.117.200.10;
> };
> };
> //
> // a caching only nameserver config
> //
> zone "." {
> type hint;
> file "named.ca";
> };
> zone "0.0.127.in-addr.arpa" {
> type master;
> file "named.local";
> };
> zone "estium-concept"{
> notify no;
> type master;
> file "named.estium-concept";
> allow-update {localhost;};
> };
> zone "0.0.10.in-addr.arpa" {
> notify no;
> type master;
> file "named.estium-concept.rev";
> allow-update {localhost;};
> };
> 
> **********************************************************
> 
> **************the /var/named/named.estium-concept file************
> 
> $ORIGIN .
> $TTL 43200 ; 12 hours
> estium-concept IN SOA clinux.estium-concept. root.estium-concept. (
> 2000070317 ; serial
> 3600 ; refresh (1 hour)
> 900 ; retry (15 minutes)
> 1209600 ; expire (2 weeks)
> 43200 ; minimum (12 hours)
> )
> NS clinux.estium-concept.
> A 10.0.0.2
> TXT "Serveur BIND local"
> $ORIGIN estium-concept.
> clinux A 10.0.0.2
> $TTL 3600 ; 1 hour
> kalkulator A 10.0.0.3
> $TTL 43200 ; 12 hours
> localhost A 127.0.0.1
> $TTL 3600 ; 1 hour
> ze A 10.0.0.50
> $TTL 43200 ; 12 hours
> ZE\032DISK A 10.0.0.50
> 
> **********************************************************
> 
> **************the /var/named/named.estium-concept.rev file*********
> 
> $ORIGIN .
> $TTL 43200 ; 12 hours
> 0.0.10.in-addr.arpa IN SOA clinux.estium-concept. root.estium-concept. (
> 2000070318 ; serial
> 3600 ; refresh (1 hour)
> 900 ; retry (15 minutes)
> 1209600 ; expire (2 weeks)
> 43200 ; minimum (12 hours)
> )
> NS clinux.estium-concept.
> $ORIGIN 0.0.10.in-addr.arpa.
> 2 PTR clinux.estium-concept.
> $TTL 3600 ; 1 hour
> 3 PTR kalkulator.estium-concept.
> 50 PTR ze.estium-concept.
> 
> **********************************************************
> 
> Here is what I could send to maximize the details of my configuration. I can
> also add  a part of the /var/log/messages from the server when the linux
> client tries to connect:
> 
> Mar 26 15:15:39 clinux dhcpd: Wrote 0 deleted host decls to leases file.
> Mar 26 15:15:39 clinux dhcpd: Wrote 0 new dynamic host decls to leases file.
> Mar 26 15:15:39 clinux dhcpd: Wrote 3 leases to leases file.
> mar 26 15:15:39 clinux dhcpd: dhcpd startup succeeded
> Mar 26 15:15:59 clinux rpc.mountd: refused mount request from 10.0.0.49 for
> /export/data1 (/): no export entry
> Mar 26 15:15:59 clinux rpc.mountd: refused mount request from 10.0.0.49 for
> /export/data2 (/): no export entry
> Mar 26 15:15:59 clinux rpc.mountd: refused mount request from 10.0.0.49 for
> /export/public (/): no export entry
> 
> this displays the existance of a problem when the linux client tries to
> connect but I have no idea of the reason why
> 
> thank you in advance
> 
> 
> --
> ----------------------------
> Christophe Michel
> ----------------------------
> 
> http://estium-concept.com
> 
> 
> 
--
Mark Andrews, Internet Software Consortium
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