named.conf
Code:
// we assume our server has the IP 192.168.254.207 serving the 192.168.254.0/24 subnet
controls {
inet 127.0.0.1 allow { 127.0.0.1; } keys { "rndckey"; };
inet 192.168.0.131 allow { 192.168.0.0/24; } keys { "rndckey"; };
};
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
recursion yes;
allow-recursion {
127.0.0.1;
192.168.0.0/24;
};
// these are the opendns servers (optional)
forwarders {
208.67.222.222;
208.67.220.220;
};
listen-on {
127.0.0.1;
192.168.0.131;
};
/*
* 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;
// so people can't try to guess what version you're running
version "REFUSED";
allow-query {
127.0.0.1;
192.168.0.0/24;
};
};
server 192.168.0.131 {
keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
// we assume we have a slave dns server with the IP 192.168.254.101
zone "rebelfighter.no-ip.com" IN {
type master;
file "data/rebelfighter.no-ip.com.zone";
allow-update { none; };
allow-transfer { 192.168.0.131; };
}; rebelfighter.no-ip.com.zone
Code:
$ttl 38400
rebelfighter.no-ip.com. IN SOA ns.rebelfighter.no-ip.com. admin.rebelfighter.no-ip.com. (
2007020400 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL of 1 day
rebelfighter.no-ip.com. IN NS ns.rebelfighter.no-ip.com.
rebelfighter.no-ip.com. IN MX 10 rebelfighter.no-ip.com.
rebelfighter.no-ip.com. IN A 192.168.0.131
ns.rebelfighter.no-ip.com. IN A 192.168.0.131
mail.rebelfighter.no-ip.com. IN CNAME rebelfighter.no-ip.com. /etc/hosts
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.131 rebelfighter.no-ip.com
::1 localhost6.localdomain6 localhost6
If you see anything wrong let me know.
I can send and receive emails.
Now the only problem is the Security Certifcate, but I think thats due to the self signing and not having it commercially signed.
I'm going to keep fiddiling with it.