Author: techfox9

Linux DNS configuration notes..

Wednesday, July 1st, 2009 @ 11:53 am

  • — The DNS server is ‘named’
    — $ ps -ef | egrep named
    — $ /etc/init.d/named status
    — Config file is /etc/named.conf (see example below)
  • — Configuration examples in /etc/named.conf file
    -- // Reverse DNS map
    zone "10.168.192.in-addr.arpa" {
            type master;
            file "/var/named/192.168.10.rev";
            };
    
    -- // Forward DNS map
    zone "mydomain.com" {
            type master;
            file "/var/named/mydomain.com.hosts";
            };
    
  • — file “/var/named/mydomain.com.hosts”
    $ttl 38400
    @       IN      SOA     dns.mydomain.com. root (
                            2008081601
                            10800
                            3600
                            604800
                            38400 )
                    IN      NS      dns.mydomain.com.
                    IN      MX      10 dns.mydomain.com.
    dns             IN      A       192.168.10.2
    mach01          IN      A       192.168.10.50
    ;; .. other machines..
    machdbs01       IN      A       10.100.2.21
    ecnfs02         IN      CNAME   machdbs01
    ecnapp02        IN      CNAME   machdbs01
    ;; External machines
    machext01       IN      A       68.246.97.42
    ecnpart02       IN      A       68.246.97.43
    ....
    

Linux


 


Comments are closed.