Hi,i configured bind9 so this file
/etc/bind/named.conf.options
/etc/bind/named.conf.local
/etc/bind/zones/facebookabune.com.db
/etc/bind/zones/rev.0.168.192.in-addr.arpa
root# nano /etc/bind/named.conf.options
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 {
4.8.8.8;
78.111.50.52;
};
//========================================================================
// 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
listen-on-v6 { any; };
};
-----------------------------------------------------
nano /etc/named.conf.local
-----------------------------------------
//
// 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 "facebookabune.com"
{
type master;
file "/etc/bind/zones/facebookabune.com.db";
};
zone "0.168.192.in-addr.arpa"
{
type master;
file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
};
-----------------------------------------------------
nano /etc/bind/zones/facebookabune.com.db
// replace example.com with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
facebookabune.com. IN SOA ns1.facebookabune.com. admin.facebookabune.com. (
// Do not modify the following lines!
2006081401
28800
3600
604800
38400
)
// Replace the following line as necessary:
ns1 = ns1.facebookabune.com
// mta = mail server name
// example.com = domain name
facebookabune.com. IN NS ns1.facebookabune.com.
facebookabune.com. IN MX 10 mta.facebookabune.com.
// Replace the IP address with the right IP addresses.
www IN A 192.168.1.5
mta IN A 192.168.1.4
ns1 IN A 192.168.1.5
-----------------------------------------------------
nano /etc/bind/zones/rev.0.168.192.in-addr.arpa
//replace example.com with yoour domain name, ns1 with your DNS server name.
// The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 1, as my IP address is 192.168.0.1.
@ IN SOA ns1.facebookabune.com. admin.facebookabune.com. (
2006081401;
28800;
604800;
604800;
86400
)
IN NS ns1.facebookabune.com.
1 IN PTR facebookabune.com
---------------------------------------------------
and so resolv.conf file
----------------------------
search facebookabune.com
nameserver 192.168.1.5
---------------------------------
and i go to 192.168.1.1 NAT
open 53 port and single ip to forwarded to 192.168.1.5
------------------------------------------------
and transfer my domain facebookabune.com transfered to this ns
ns1.facebookabune.com --- and my server ip
----------------------------------------
but i typed this command :
dig facebookabune.com give this response
------------------------------
root@ulvi-P5K-SE:/etc/bind# dig facebookabune.com
; <<>> DiG 9.9.2-P1 <<>> facebookabune.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 34737
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;facebookabune.com. IN A
;; Query time: 0 msec
;; SERVER: 192.168.1.5#53(192.168.1.5)
;; WHEN: Wed Jan 30 03:20:57 2013
;; MSG SIZE rcvd: 46
----------------------------------------------
PLEASEEE HELP ME PLEASE