|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Bind zone configuration |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|