1: Settings of DNS servers
1. Edit /etc/named.conf
// generated by named-bootconf.pl
options {directory "/ var / named"; / * * 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;}
/// a caching Only Nameserver config // controls {inet 127.0.0.1 allow {localhost;} keys {rndckey;};}; zone. "in {type hint; file" named.ca ";
Zone "mydomain.com" in {type master; file "named.mydomain.com"; allow-update {none;};
Zone "1.168.192.in-addr.arpa" in {type master; file "named.mydomain.com.rev"; allow-update {none;};
ZONE "localhost" in {type master; file "localhost.zone"; allow-update {none;};
Zone "0.0.127.in-addr.Arpa" in {type master; file "named.local"; allow-update {none;};
INCLUDE "/etc/rndc.key";
2. Edit the forward parsing file / VAR/NAMED/Named.Mydomain.com $ TTL 86400 @ in SOA my.mydomain.com. Root.my.mydomain.com. (1997022700; Serial 28800; Refresh 14400; RETRY 3600000; Expire 86400); minimum in ns my.mydomain.com. In mx 10 my.mydomain.com.
MY IN A 192.168.1.50 www in cname my.mydomain.com. ftp in cname my.mydomain.com. SMTP in cname my.mydomain.com. Pop3 in cname my.mydomain.com.
3. Edit Reverse Analysis File / Var/named/named.mydomain.com.rev $ TTL 86400 @ in soa my.mydomain.com. Root.ns.mydomain.com. (1997022700; Serial 28800; Refresh 14400; RETRY 3600000 EXPIRE 86400); minimum in ns my.mydomain.com.
50 in ptr my.mydomain.com.
4. Edit /var/named/named.local file $ TTL 86400 @ in soa my.mydomain.com. Root.my.mydomain.com. (1997022700; Serial 28800; Refresh 14400; Retry 3600000; Expire 86400); minimum in NS my.mydomain.com.1 in ptr localhost.
5. Edit /etc/resolv.conf # Made-by-rp-pppoe domain mydomain.com Nameserver 192.168.1.50 Search LocalDomain