[FUG-BR] DHCP e BIND

Rodrigo Mosconi de Gouvea mosconi em facil.psi.br
Ter Jun 21 13:33:06 BRT 2005


Lista, 

	ha algum tempo atras eu enviei um email para ca comentando de uma msg que sempre dava quando um micro entrava na rede por dhcp ("Jun 13 21:32:51 Norton-Thevenin dhcpd: if MEGUENIA.gouvea.homeunix.net IN A rrset doesn't exist add MEGUENIA.gouvea.homeunix.net 300 IN A 192.168.1.31: not a zone."), ate agora nao encontrei uma solucao para meu problema...

eis aqui meu named.conf:

bash-2.05b$ cat /etc/namedb/named.conf
options {
	directory       "/etc/namedb";
	pid-file        "/var/run/named/pid";
	dump-file       "/var/dump/named_dump.db";
	statistics-file "/var/stats/named.stats";
	listen-on       {
			   127.0.0.1;
			   192.168.1.0/24;
			 };
      forward only;
	forwarders {
		127.0.0.1;
		200.165.132.148;
		200.149.55.140;
	};
};

zone "." {
	type hint;
	file "named.root";
};

zone "gouvea.homeunix.net" {
	type master;
	file "master/gouvea.homeunix.net";
};

zone "1.168.192.in-addr.arpa" {
	type master;
	file "master/1.168.192.in-addr.arpa";
};

eis aqui o arquivo de zona(gouvea.homeunix.net):

bash-2.05b$ cat /etc/namedb/master/gouvea.homeunix.net
$TTL    3600

gouvea.homeunix.net.    IN      SOA     dns.gouvea.homeunix.net.        root.gouvea.homeunix.net.(
	0706200501      ;Serial
	10800           ;Refresh
	3600            ;Retry
	604800          ;Expire
	86400           ;Minimum TTL
	)

@       IN      NS      dns.gouvea.homeunix.net.

Norton-Thevenin IN      A       192.168.1.1

www     IN      CNAME   Norton-Thevenin
dns     IN      CNAME   Norton-Thevenin
mail    IN      CNAME   Norton-Thevenin

eis aqui o arquivo de reverso:

bash-2.05b$ cat /etc/namedb/master/1.168.192.in-addr.arpa
$TTL    3600

1.168.192.in-addr.arpa. IN      SOA     dns.gouvea.homeunix.net.        root.gouvea.homeunix.net.(
	0706200501      ;Serial
	10800           ;Refresh
	3600            ;Retry
	604800          ;Expire
	86400           ;Minimum TTL
	)

@       IN      NS      dns.gouvea.homeunix.net.

1       IN      PTR     Norton-Thevenin.gouvea.homeunix.net.

e eis aqui o dhcp.conf:

bash-2.05b$ cat /usr/local/etc/dhcpd.conf
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

# option definitions common to all supported networks...
option domain-name "gouvea.homeunix.net";
option domain-name-servers dns.gouvea.homeunix.net, 192.168.1.1;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates.
ddns-update-style ad-hoc;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

#subnet 10.152.187.0 netmask 255.255.255.0 {
#}

# This is a very basic subnet declaration.

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.16 192.168.1.31;
  option routers 192.168.1.1;
}

muito grato por qualauer ajuda que me possam oferecer

	Mosconi

_______________________________________________
Freebsd mailing list
Freebsd em fug.com.br
http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br




Mais detalhes sobre a lista de discussão freebsd