DNS is defined in Request for Comments (RFCs) 1034 and 1035.
Basically, any major Linux distro can be used as a DNS, Web, E-mail, and FTP server, and Suse is not an exception. All in one box and one static IP address. That's all you need! Of course, I am talking about an experimental machine. An educative aproach. If you are seriuos about the Internet, you are going to need minimun two DNS servers, an email server, a web server, an FTP server, a firewall machine may be using ipcop.org, a proxy server, etc.
The DNS server is very easy to install. All you need to install is the BIND package, modify the /etc/named.conf file, and create your own zones files.
If you are using any type of firewall, keep port 53 open for UDP and TCP. This is the port dedicated to DNS.
Edit file /etc/named.conf and add your reference zone files.
zone "yogsuse.org" in {
type master;
file "yogsuse.org.zone";
};
zone "100.100.10.in-addr.arpa" in {
type master;
file "10.100.100.86";
};
include "/etc/rndc.key";
Copy file
root@suse: ~# cp /var/lib/named/localhost.zone /var/lib/named/yogsuse.org.zone
root@suse: ~# cp /var/lib/named/127.0.0.zone /var/lib/named/10.100.100.86
Edit file /var/lib/named/yogsuse.org.zone
$TTL 1W
@ IN SOA yogsuse.org. root.yogsuse.org. (
42 ; serial (d. adams)
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum
IN NS ns.yogsuse.org.
IN A 10.100.100.86
ns IN A 10.100.100.86
@ IN MX 10 mail.yogsuse.org.
mail IN A 10.100.100.86
www IN A 10.100.100.86
Edit file /var/lib/named/10.100.100.86
$TTL 1W
@ IN SOA ns.yogsuse.org. root.yogsuse.org. (
42 ; serial (d. adams)
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum
IN NS ns.yogsuse.org.
86 IN PTR yogsuse.org.
restart named service
root@suse: ~# service named restart
Shutting down name server BIND done
Starting name server BIND done
cek named
root@suse: ~# nslookup
0 comments:
Post a Comment