Trying for the life of me to get a freakin DNS server setup. I have never done this before and i am about to pull my hair out. I have went over 10 tutorials for bind 9 and not one can help me configure this crap correctly.
All the tutorials assume a 192.168.0.1 for instance ip address, but im not needing to foward requests internally to my network after there coming through my router.
My idea is i have the server in a DMZ, i need the server to be open to the internet to be run as a firewall to the perimeter of my network. Then any requests directly goto my ip address but not a 192.168.x.x, but my ISP assigned one. All the other pc's on my network use the 192.168.x.x.
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";
# Domain Name
zone "pakalolo420.us" {
type master;
file "/etc/bind/zones/pakalolo420.us.db";
};
# Reverse DNS
zone "185.217.58.68.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.185.217.58.68.in-addr.arpa";
};
--------------------------------------------------------------
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 {
68.87.66.196;68.87.64.196
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
-------------------------------------------------------------
Zone Def File (pakalolo420.us.db)
// replace example.com with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
pakalolo420.us. IN SOA ns1.pakalolo420.us. admin.pakalolo420.us. (
// Do not modify the following lines!
2006081401
28800
3600
604800
38400
)
// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// example.com = domain name
pakalolo420.us. IN NS ns1.pakalolo420.us.
pakalolo420.us. IN MX 10 mta.pakalolo420.us.
// Replace the IP address with the right IP addresses.
www IN A 68.58.217.185
mta IN A 68.58.217.185
ns1 IN A 68.58.217.185
-----------------------------------------------------------------
Reverse DNS Zone File (rev.185.217.58.68.in-addr.arpa)
//replace example.com with your domain name, ns1 with your DNS server name.
// The number before IN PTR example.com is the machine address of the DNS server. in my case, it's 1, as $
@ IN SOA ns1.example.com. admin.example.com. (
2006081401;
28800;
604800;
604800;
86400
)
IN NS ns1.pakalolo420.us.
1 IN PTR pakalolo420.us
--------------------------------------------------------------
* Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused
[ OK ]
* Starting domain name service... bind9 [fail]
That is all i get when i execute a restart for bind 9. Help. I have no idea how to make this work. Been over everything 10 times.