| DNS | ||||
|
etc/resolv.conf
[root@linuxhost /etc]# cat resolv.conf Notes: The 127.0.0.1 reference is very necessary. If the server is administering just part of the mydomain.cxm domain (let's say corporate), that first line would be search corporate.mydomain.cxm mydomain.cxm Note that if there are *ANY* problems in reverse DNS, the existance of this file can cause failure to run telnet, ftp, or sendmail, and can prevent boot. Therefore, it's essential during DNS development and debugging to rename this file before rebooting. If this advice isn't followed, you can bust back in with a boot and rescue diskette and disable whatever is hanging the boot (usually amd and/or sendmail). options { // zone "0.0.127.in-addr.arpa" { zone "mydomain.cxm" {
Notes: The options block at the top tells the root directory for further DNS
files. This is very similar to the version 4 dns. This file serves as a roadmap for the rest of your DNS setup. Note how much easier this is than the old named.boot setup. @ IN SOA localhost. root.localhost. ( 1 IN PTR localhost. Notes: Forward DNS for the loopback interface (lo). Use exactly as is. It probably
comes looking just like this on the Linux distro. @ IN SOA ns.mydomain.cxm. hostmaster.mydomain.cxm. ( NS ns ; Inet Address of name server localhost A 127.0.0.1 Notes: This is the forward DNS for the server's domain. The meaning of the
@ sign on the first line is the Zone variable string in /etc/named.conf, so
in this case it's mydomain.cxm. Note that except in the first line, the word
"IN" is now optional. The localhost A line is necessary for proper
DNS server functioning. The ns A line provides portability, so if the name server
is changed, the ip is changed here but everything else remains the same. Linuxhost
is the actual hostname of the machine, mail is an alias (though it's done with
A, not CNAME) used in mail routing, and www is an http alias. @ IN SOA ns.mydomain.cxm. hostmaster.mydomain.cxm. ( NS ns.mydomain.cxm. ; Inet Address of name server @ A 192.168.200.146 Notes: I'm using the 192.168.102.3 as the mail exchanger, so the only significance
here is that @ (sqldocs.cxm) and alias (but not aliased wth CNAME) map to 192.168.200.146,
a virtual IP hung off the lo interface. @ IN SOA ns.mydomain.cxm. hostmaster.mydomain.cxm. ( NS ns.mydomain.cxm. ; Inet Address of name server @ A 192.168.200.148 Notes: I'm using the 192.168.102.3 as the mail exchanger, so the only significance here is that @ (nag.cxm) and alias (but not aliased wth CNAME) map to 192.168.200.148, a virtual IP hung off the lo interface. Note the only distinction between this file and named.sqldocs.cxm above it is the ip address of @. This is the beauty of version 8. To add a new website to the series, copy another per-domain forward file, then change the ip. This is why I chose not to put comments in these files -- too much likelihood of the comments becoming misleading with copying. @ IN SOA ns.mydomain.cxm. hostmaster.mydomain.cxm. (
Notes: Reverse DNS for the 192.168.102 subnet (the server's subnet).Simply
define PTR records for each name for each IP in the subnet. Note that where
several names go with a single IP, reverse DNS will bring back the first PTR
record for that IP. @ IN SOA ns.mydomain.cxm. hostmaster.mydomain.cxm. (
148 PTR nag.cxm. Notes: Reverse DNS for the 192.168.200 subnet (the series of websites with virtual IPs hung off the lo interface).Simply define PTR records for each name for each IP in the subnet, generally one with just the domain and one with a prepended www. Note that where several names go with a single IP, reverse DNS will bring back the first PTR record for that IP. Note that if individual domains had their own mail servers or ftp servers or anything like that, those would get PTR records here too. |
|||
| WWW Friends SNES Holidays | Facebook
me! |