DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 14th, 2003, 10:41 AM
econard econard is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: dallas
Posts: 5 econard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 sec
Reputation Power: 0
Bind zone configuration

I am trying to set up a Bind 9 DNS server (216.206.88.4) on Red Hat 9. Right now our web, email, and DNS is done by our ISP. I am doing this, so that we may move them in-house. This server will return good data from external sources but, not from the zone that i am setting up. It is like it does not see my zone file. I have my directory set to the default '/var/named' and this is where my zone files reside. I get the same response whether there is a zone file or not.

Here are my configs:

/etc/named.conf
// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "standardhardware.com" IN {
type master;
file "test.db";
};


zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

include "/etc/rndc.key";


/var/named/test.db
$TTL 86400

standardhardware.com 1D IN SOA ns2.standardhardware.com. postmaster.standardhardware.com. (
2003081302 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D NS ns1.standardhardware.com.
1D NS ns2.standardhardware.com.
1D MX 15 mail.standardhardware.com.
1D A 168.75.225.195
www 1D A 168.75.225.195
mail 1D A 168.75.225.197

This is the response I get when I dig standardhardware.com:
; <<>> DiG 9.2.1 <<>> standardhardware.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 19484
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;standardhardware.com. IN A

;; Query time: 2 msec
;; SERVER: 10.73.10.21#53(10.73.10.21)
;; WHEN: Thu Aug 14 09:37:54 2003
;; MSG SIZE rcvd: 38

This is the response I get when I dig google.com:
; <<>> DiG 9.2.1 <<>> google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27946
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 300 IN A 216.239.51.100
google.com. 300 IN A 216.239.53.100

;; AUTHORITY SECTION:
google.com. 345600 IN NS ns3.google.com.
google.com. 345600 IN NS ns4.google.com.
google.com. 345600 IN NS ns1.google.com.
google.com. 345600 IN NS ns2.google.com.

;; Query time: 59 msec
;; SERVER: 10.73.10.21#53(10.73.10.21)
;; WHEN: Thu Aug 14 10:23:55 2003
;; MSG SIZE rcvd: 132

Any help would be appreciated.
Thanks,
Eric

Reply With Quote
  #2  
Old August 14th, 2003, 11:06 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
The problem is most likely with your zone. The SOA name field is missing a period at the end. Also, you make use of relative domains, when an ORIGIN is not set (which may be ok, but just to be sure include one). Also, (this did not cause the SERVFAIL) you did not specify IP addresses for ns1 and ns2.

Here's the zone file as I preferred it formatted:

http://serialcoders.sytes.net/BIND/...rdware.com.zone

The ns1 and ns2 domains are set to 168.75.225.195. You may need to change that if this is wrong.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old August 14th, 2003, 01:24 PM
econard econard is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: dallas
Posts: 5 econard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 sec
Reputation Power: 0
I want to thank you SilentRage. I took your zone file and dropped it in. The server is now giving me the answers. The DNS tools on your site are great!

Thanks Again,
Eric

Last edited by econard : August 14th, 2003 at 01:58 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Bind zone configuration


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway