| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-19-2008, 03:46 AM
|
#1
|
|
Member
Registered: Oct 2007
Posts: 71
Rep:
|
bind9 - dig -x returns - status: SERVFAIL
Hi All,
I've been working our local DNS server, setting up reverse delegation to increase security on blocking SPAM email and also bringing up the server to standard.
I have loaded up the reverse zone file with no errors /var/log/messages but, when i run dig -x 1.2.3.3, I get the below status: SERVFAIL.
I initial thought the error was caused by a misconfigured zone file. And made several changes on it and even used another reverse zone file, but still got the same error.
Can some tell me what going and how can i increase the log severity on named.conf?
Thanks
Elly
Quote:
; <<>> DiG 9.2.4 <<>> -x 1.2.3.4
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 28122
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;3.212.233.84.in-addr.arpa. IN PTR
;; Query time: 0 msec
;; SERVER: 1.2.3.4#53(1.2.3.4)
;; WHEN: Mon May 19 11:30:44 2008
;; MSG SIZE rcvd: 43
|
Zone File
Quote:
$TTL 1D
@ IN SOA dns1.example.co.tz. hostmaster.example.co.tz. (
2008051601 ; serial
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;Name server(s)
IN NS dns1.example.co.tz. ; Primary Server
3 PTR example.co.tz. ;IP: 1.2.3.3
|
|
|
|
|
05-19-2008, 05:32 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,393
|
Quote:
|
Can some tell me what going and how can i increase the log severity on named.conf?
|
You should at least post the relevant part of named.conf, where you define your reverse zone.
You can look at /var/log/messages, or /var/log/syslog for errors, or you can setup logging for more detailed logs.
Regards
|
|
|
|
05-19-2008, 07:36 AM
|
#3
|
|
Member
Registered: Oct 2007
Posts: 71
Original Poster
Rep:
|
Quote:
|
You should at least post the relevant part of named.conf,
|
zone "3.2.1.in-addr.arpa" IN {
type master;
file "1-2-3.revzone";
};
Quote:
|
you can setup logging for more detailed logs.
|
Which option will provide more details on the mentioned problem?
I have the below settings but, i don't get detailed logs.
Quote:
logging
{
channel custom {
file "/var/log/bindlog" versions 5 size 5m;
print-time yes; # timestamps
print-category yes;
};
category config { custom; };
category notify { custom; };
category dnssec { custom; };
category general { custom; };
category security { custom; };
category xfer-out { custom; }; # zone transfers
category lame-servers { custom; };
};
|
|
|
|
|
05-19-2008, 09:03 AM
|
#4
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,393
|
Quote:
|
I have the below settings but, i don't get detailed logs.
|
You should add under the line: "file "/var/log/bindlog" versions 5 size 5m; "
the following 2 lines:
Code:
severity debug 3;
print-severity yes;
You can change the "3" in the debug level above, up to "9" if you want.
Now for the SERVFAIL problem, you should try to add $ORIGIN in the beginning of the zone file to see if it helps:
Code:
$TTL 1D
$ORIGIN 3.2.1.in-addr.arpa.
@ IN SOA dns1.example.co.tz. hostmaster.example.co.tz. (
2008051601 ; serial
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;Name server(s)
IN NS dns1.example.co.tz. ; Primary Server
3 PTR example.co.tz. ;IP: 1.2.3.3
|
|
|
|
05-19-2008, 10:29 AM
|
#5
|
|
Member
Registered: Oct 2007
Posts: 71
Original Poster
Rep:
|
Quote:
|
Now for the SERVFAIL problem, you should try to add $ORIGIN in the beginning of the zone file to see if it helps:
|
It worked after adding $ORIGIN. I need to do further reading on $ORIGIN directive
Thanks,
Elly
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:01 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|