LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-29-2013, 06:21 PM   #1
DeSouffle
LQ Newbie
 
Registered: Aug 2012
Posts: 28

Rep: Reputation: Disabled
DIg not respond from my domain


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
 
Old 01-30-2013, 01:33 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Hi,

You zone file has errors. Try the following and see if it works
Code:
// 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!
 2006081402 ;Need to increase it after every change
 28800 
 3600
 604800
 38400
)

// Replace the following line as necessary:
//ns1 = ns1.facebookabune.com  ;error
// 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.
@       IN A 192.168.1.5 ; A RR for facebookabune.com
www IN A 192.168.1.5
mta IN A 192.168.1.4
ns1 IN A 192.168.1.5
Reload bind and check.

Regards
 
Old 01-30-2013, 01:59 AM   #3
DeSouffle
LQ Newbie
 
Registered: Aug 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
dns configure

Quote:
Originally Posted by bathory View Post
Hi,

You zone file has errors. Try the following and see if it works
Code:
// 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!
 2006081402 ;Need to increase it after every change
 28800 
 3600
 604800
 38400
)

// Replace the following line as necessary:
//ns1 = ns1.facebookabune.com  ;error
// 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.
@       IN A 192.168.1.5 ; A RR for facebookabune.com
www IN A 192.168.1.5
mta IN A 192.168.1.4
ns1 IN A 192.168.1.5
Reload bind and check.

Regards

Please help me,where is error? i know found this error,please help...
 
Old 01-30-2013, 02:51 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
You should edit the lines in bold. Read the comments to see why.
Code:
// 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!
 2006081402 ;Need to increase it after every change
 28800 
 3600
 604800
 38400
)

// Replace the following line as necessary:
//ns1 = ns1.facebookabune.com  ;error
// 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.
@       IN A 192.168.1.5 ; A RR for facebookabune.com
www IN A 192.168.1.5
mta IN A 192.168.1.4
ns1 IN A 192.168.1.5
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail doubling sender domain- ex. hostname.domain.net.domain.net halborr Slackware 7 08-23-2010 09:37 AM
BIND9: dig <hostname> doesn't work, dig <hostname.domain.tld> does. jhwilliams Linux - Server 2 04-09-2010 02:01 PM
IPtables - block subdomains (a.domain.com, b.domain.com, c.domain.com,...) benjalien Linux - Networking 6 06-24-2009 08:03 AM
dig @ works, dig doesn't eelgueta Linux - Networking 6 07-09-2007 07:45 PM
dig drumltd Linux - Networking 5 11-05-2006 09:19 AM


All times are GMT -5. The time now is 03:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration