Hello, i set up a home server today. Everything installed correctly such as the hosting control panel and i can access it through my external ip. (I only have 1 ip - i know it is possible with just one) However, i created my name servers: ns1.freesamp.info xxx.xxx.xxx.xx ns2.freesamp.info xxx.xxx.xxx.xx Then on my main domain freesamp.info, i added those 2 name servers to it. I get these errors: http://www.intodns.com/freesamp.info Please could someone help me to overcome all of these different errors. I am quite new to this sort of thing. Thanks Here is my DNS Template: $TTL 86400 @ IN SOA ns.freesamp.info. {dnsemail} ( {serial} ; Serial, this is www.ehcp.net dns zone template file.. 10800 ; Refresh 1200 ; Retry 86400 ; Expire 86400 ) ; Minimum freesamp.info. IN NS ns.freesamp.info. ns.freesamp.info. IN A {dnsip} ns1.freesamp.info. IN A {dnsip} ns2.freesamp.info. IN A {dnsip} dns.freesamp.info. IN A {dnsip} dns1.freesamp.info. IN A {dnsip} dns2.freesamp.info. IN A {dnsip} freesamp.info. IN A {webip} mail.freesamp.info. IN A {mailip} smtp.freesamp.info. IN A {webip} imap.freesamp.info. IN A {webip} webmail.freesamp.info. IN A {webip} ftp.freesamp.info. IN CNAME freesamp.info. www.freesamp.info. IN CNAME freesamp.info. freesamp.info. IN MX 10 mail.freesamp.info. freesamp.info. IN TXT "v=spf1 a mx" {customdns} * IN A {webip} Code (markup):
The current template you posted above is incorrect, but that may not be all of your problem either, im not even sure the domain you posted is the correct domain to check either, is this the correct domain name - freesamp.info This could be related to the fact you dont have named.conf setup correctly either.
At this point, you didnt answer the questions about the domain? As far as making the files go, not sure exactly what is wrong with your setup to begin with, the above template you added just needs a few fixes, but that dont mean its going to fix the real issue. Whats in named.conf? $TTL 86400 @ IN SOA ns.freesamp.info. {dnsemail} ( {serial} ; Serial, this is www.ehcp.net dns zone template file.. 10800 ; Refresh 1200 ; Retry 86400 ; Expire 86400 ) ; Minimum freesamp.info. IN NS ns.freesamp.info. freesamp.info. IN NS ns1.freesamp.info. freesamp.info. IN NS ns2.freesamp.info. freesamp.info. IN MX 10 mail.freesamp.info. ns IN A {dnsip} ns1 IN A {dnsip} ns2 IN A {dnsip} freesamp.info. IN A {webip} mail IN A {mailip} smtp IN A {webip} imap IN A {webip} webmail IN A {webip} ftp IN A {webip} www IN A {webip} freesamp.info. IN TXT "v=spf1 a mx" Code (markup):
// Named.conf // This is the primary configuration file for the BIND DNS server named. // // Please read /usr/share/doc/bind9/README.Debian.gz for information on the // structure of BIND configuration files in Debian, *BEFORE* you customize // this configuration file. // // If you are just adding zones, please do that in /etc/bind/named.conf.local include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; include "/etc/bind/named_ehcp.conf"; Code (markup): 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"; Code (markup): named.conf.default-zones == // prime the server with knowledge of the root servers zone "." { type hint; file "/etc/bind/db.root"; }; // be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912 zone "localhost" { type master; file "/etc/bind/db.local"; }; zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; }; zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; Code (markup): 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 { // 0.0.0.0; // }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; }; Code (markup): Named_ehcp.conf /* domain id:2 domainname:freesamp.info panelusername:freesamp.info reseller:admin aciklama-explanation:{aciklama} */ zone "freesamp.info" { type master; file "/etc/bind/freesamp.info"; }; /* domain id:3 domainname:Assdasd panelusername:Asd reseller: aciklama-explanation:{aciklama} */ zone "Assdasd" { type master; file "/etc/bind/Assdasd"; }; Code (markup): I don't know if you will acctually need all the above files, but basically i have just copied and pasted them above. Thanks for your help
Your zone file on your first post above is incorrect, and AnthonyG has fixed it on his post. I wonder...where's your "reverse_ip.in_addr.arpa" zone?
Thanks for the reply, i don't know what the 'reverse_ip.in_addr.arpa' zone is. Is it a file? - I looked and couldn't find it in my file manager. > Yea, i have changed the DNS template to AnthonyG's and reset the apache server, and it still doesn't work
yes, it is a file....and you should put into your named.conf.default-zones to get it loaded. anyways, can you restart your dns server and post its log here?
The reverse record is irrelevant at this point. Why are you placing the zones in this file? Named_ehcp.conf
I haven't touched any of the files yet, i have just basically installed a control panel called EHCP and added the domain freesamp.info I changed the DNS template to the one you provided above.