diff --git a/conf/named.conf.local b/conf/named.conf.local new file mode 100644 index 0000000..03032a1 --- /dev/null +++ b/conf/named.conf.local @@ -0,0 +1,12 @@ +// +// 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 "yongq.com" { + type master; + file "/etc/bind//db.yongq.com.zone"; +}; diff --git a/conf/named.conf.options b/conf/named.conf.options new file mode 100644 index 0000000..04e5af7 --- /dev/null +++ b/conf/named.conf.options @@ -0,0 +1,27 @@ +options { + directory "/var/cache/bind"; + + // 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 { + 8.8.8.8; + }; + + //======================================================================== + // 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; + + allow-query { any; }; + + listen-on port 53 { any; }; + listen-on-v6 { any; }; +}; diff --git a/zones/db.yongq.com.zone b/zones/db.yongq.com.zone new file mode 100644 index 0000000..7659d12 --- /dev/null +++ b/zones/db.yongq.com.zone @@ -0,0 +1,13 @@ +; +; BIND data file for local loopback interface +; +$TTL 604800 +@ IN SOA yongq.com. root.yongq.com. ( + 2 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +@ IN NS yongq.com. +@ IN A 192.168.3.85