I’m a bit stressed for time, so i’ll keep this nice and short. The whole article will be a series of points.
- Almost ALL bind config files are basic text files.
- Spaces and special ending characters are VERY important.
- Serial numbers within the files (you will see shortly) do NOT effect greatly, but it is best practice to keep them in order.
- Serial numbers SHOULD be incremented everytime you edit the file
- Forward lookup files are usually stored in /etc/bind
- Naming of the file should be [domain-name].db for example: geekdomain.db, google.db
; As a basic RULE, all config files HAVE to start with the SOA (Start Of Authority) line.
; The SOA tells us which server is the Authoritative DNS server for this domain. If this is your ONLY DNS server, this will be your Authoritative server. Lets di-sect the stuff within the ().
; The serial number, is a number representing which version this file is. The numbering convention is upto the admin. We normally type the serial number as date & time. For example,
; if we edit this file on the 17th of May 2011, we will number it 20110517. If you want you can put the time in there as well. You must remember to change this number everytime you make any
; change to the file.
; The next line tells us the refresh rate. The numbers are in seconds. Hence 3600 gives us a refresh time of 1 hour
; The next line tells us the retry rate. Again, the numbers are in seconds.
; The Next line tells us the expiry time.
; The next line is the minimum time.
; Alot of people get confused by this first line. It's simply; @ IN SOA(Saying this server is the SOA) server.name admin.email (with the @ sign replaces by a . )
@ IN SOA geek.domain. admin.geek.domain. (
20110517 ; Serial number
3600 ; 1 hour refresh
300 ; 5 minutes retry
172800 ; 2 days expiry
43200 ) ; 12 hours minimum
; List of Name servers in this domain. It MIGHT be a good idea to also have your ISP's DNS server in here.
IN NS geek.domain.
IN NS isp.geek.domain.gk.
; List all MX (Mail exchange) records here!
IN MX mail.geek.domain.
; List all your other servers and machines here
web.geek.domain. IN A 192.168.11.12 ; Web Server
fileserver.geek.domain. IN A 192.168.11.13 ; File Server
machine1.geek.domain. IN A 192.168.12.3 ; Windows XP machine
; Alias names
www IN CNAME web.geek.domain.
ftp IN CNAME fileserver.geek.domain.
printer IN CNAME fileserver.geek.domain.
|























Ok here’s the deal, today i was surfing some famous community news sites where i came across this interesting news about a person who got house arrested for uploading The newest movie of Star wars through a torrent. Anyways the interesting thing is, the judge ordered that a tracking software be installed on to that person’s computer