Computing.Net > Forums > Linux > DNS/BIND issue: servfail upon dig

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DNS/BIND issue: servfail upon dig

Reply to Message Icon

Name: Steven
Date: July 4, 2003 at 00:48:19 Pacific
OS: RHL 8
CPU/Ram: 256megs
Comment:

Hey,
I just registered a new domain name and I'm planning on hosting it myself. I've talked to several people about DNS and nameserver and have done research on the subject. I'm planning on creating my own primary DNS and using secondary.org as my secondary DNS. I've got ns.domain.com setup with my registrar already, and all I need now is to setup the zone files and /etc/named.conf. I've tried several times setting these files up, without success. I've used the dig @localhost domain.com and received a SERVFAIL. Below is my named.conf file, master zone file, and reverse zone file.

----------NAMED.CONF------------
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/rndc.key";

options {
directory "/etc/namedb"; // Working directory
allow-query { any; }; // This is the default
recursion no; // Do not provide recursive service
};


// Root server hints
// zone "." { type hint; file "root.hint"; };


zone "localhost" {
type master;
file "localhost.db";
notify no;
};

// Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
notify no;
};
// We are the master server for example.com
zone "tlps.org" {
type master;
file "tlps.org.db";
// IP addresses of slave servers allowed to transfer example.com
allow-transfer {
127.0.0.1;
172.16.0.1;
216.99.211.43;
66.46.181.116;
};
};

zone "0.16.172.in-addr.arpa" {
type master;
file "tlps.org.rev";
// IP addresses of slave servers allowed to transfer example.com
allow-transfer {
127.0.0.1;
172.16.0.1;
216.99.211.43;
66.46.181.116;
};
};
----------END NAMED.CONF-----------
----------master zone file-----------
$ORIGIN tlps.org
$TTL 86400
@ IN SOA ns.tlps.org. root.tlps.org. (
2001050906
21600
3600
604800
86400 )
IN A 172.16.0.1
IN MX 10 mail.tlps.org.
IN NS ns.tlps.org.
IN NS dns.secondary.org.
ns IN A 172.16.0.1
www IN CNAME ns
ftp IN CNAME ns
mail IN CNAME ns
---------end master zone file---------
---------reverse master zone file---------
$ORIGIN 0.16.172.in-addr.arpa
$TTL 86400
@ IN SOA ns.tlps.org. root.tlps.org. (
2001050906
21600
3600
604800
86400 )
IN NS ns.tlps.org.
IN NS dns.secondary.org.
1 IN PTR ns.tlps.org.
-------end reverse master zone file-------

If anybody knows what's wrong with these files, or if you have any suggestions I'd be happy to hear them. If you need to contact me, my email is mrmoose@z-z.ath.cx
Thanks in advance,
~Steven



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: DNS/BIND issue: servfail upon dig

DNS & BIND www.computing.net/answers/linux/dns-amp-bind/12358.html

DNS server www.computing.net/answers/linux/dns-server/12445.html

dns requests not sent to forwarder www.computing.net/answers/linux/dns-requests-not-sent-to-forwarder/22911.html