Enviado em 11/01/2017 - 00:35h
Oi, eu to seguindo esse tutorial https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-private-network-dns-serv... fiz todos os passos e deu tudo certo até a parte do nslookup que aí não acha o host, alguém poderia me ajudar por favor?
acl "trusted" {
192.168.100.1; # ns1 - can be set to localhost
192.168.100.104; # host1
};
options {
directory "/var/cache/bind";
recursion yes; # enables resursive queries
allow-recursion { trusted; }; # allows recursive queries from "trusted" clients
listen-on { 192.168.100.1; }; # ns1 private IP address - listen on private network only
allow-transfer { none; }; # disable zone transfers by default
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
192.168.100.1;
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
li
sten-on-v6 { any; };
};
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "nyc3.example.com" {
type master;
file "/etc/bind/zones/db.nyc3.example.com"; # zone file path
};
zone "168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/db.168.192";
};
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.nyc3.example.com. admin.nyc3.example.com. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
; name servers - NS records
IN NS ns1.nyc3.example.com.
; name servers - A records
ns1.nyc3.example.com. IN A 192.168.100.1
; 10.128.0.0/16 - A records
host1.nyc3.example.com. IN A 192.168.100.104
$TTL 604800
@ IN SOA nyc3.example.com. admin.nyc3.example.com. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
; name servers
IN NS ns1.nyc3.example.com.
IN NS ns2.nyc3.example.com.
; PTR Records
1.100 IN PTR ns1.nyc3.example.com. ; 192.168.100.1
104.100 IN PTR host1.nyc3.example.com. ; 192.168.100.104