Bind9

Discussion in 'Installation/Configuration' started by visjusz, Jan 21, 2012.

  1. visjusz

    visjusz New Member

    Hello, i have problem with configuration of bind9...
    I have domain: visjusz.pl and i need to set dns1.visjusz.pl and dns2.visjusz.pl as ns of server.
    Standard: bind9, Debian 6.0 squeeze, IspConfig 3.0.4.1
    Domain: visjusz.pl redirected to server IP: 78.47.223.37
    Domain for example: houseofworkshops.pl redirected to dns1.visjusz.pl and dns2.visjusz.pl.

    Bind log:
    Code:
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: using default UDP/IPv6 port range: [1024, 65535]
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: listening on IPv6 interfaces, port 53
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: listening on IPv4 interface lo, 127.0.0.1#53
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: listening on IPv4 interface eth0, 78.47.223.37#53
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: generating session key for dynamic DNS
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: set up managed keys zone for view _default, file 'managed-keys.bind'
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 254.169.IN-ADDR.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: D.F.IP6.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 8.E.F.IP6.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 9.E.F.IP6.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: A.E.F.IP6.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: B.E.F.IP6.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: command channel listening on 127.0.0.1#953
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: command channel listening on ::1#953
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: zone 0.in-addr.arpa/IN: loaded serial 1
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: zone 127.in-addr.arpa/IN: loaded serial 1
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: zone 255.in-addr.arpa/IN: loaded serial 1
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: zone localhost/IN: loaded serial 2
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: zone visjusz.pl/IN: loaded serial 2012012001
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: managed-keys-zone ./IN: loaded serial 0
    Jan 21 00:46:48 Debian-60-squeeze-64-minimal named[7695]: running
    named.conf.options:
    Code:
    options {
    	directory "/var/cache/bind";
    
    	// If there is a firewall between you and nameservers you want
    	// to talk to, you may need to fix the firewall to allow multiple
    	// ports to talk.  See http://www.kb.cert.org/vuls/id/800113
    
    	// If your ISP provided one or more IP addresses for stable 
    	// nameservers, you probably want to use them as forwarders.  
    	// Uncomment the following block, and insert the addresses replacing 
    	// the all-0's placeholder.
    
    
    	auth-nxdomain no;    # conform to RFC1035
    	listen-on-v6 { any; };
    };
    
    named.conf.local:
    Code:
    zone "visjusz.pl" {
            type master;
                    file "/etc/bind/pri.visjusz.pl";
    	allow-transfer { localhost; };
           allow-update { key rndc-key; };
    };
    pri.visjusz.pl:
    Code:
    $TTL        3600
    @       IN      SOA     dns1.visjusz.pl. mymail.o2.pl. (
                            2012012001       ; serial, todays date + todays serial #
                            7200              ; refresh, seconds
                            540              ; retry, seconds
                            604800              ; expire, seconds
                            86400 )            ; minimum, seconds
    ;
    
    dns1     IN     A    78.47.223.37
    dns2     IN     A    78.47.223.37
    
    mail 3600 A        78.47.223.37
    visjusz.pl. 3600 A        78.47.223.37
    visjusz.pl. 3600      MX    10   mail.visjusz.pl.
    visjusz.pl. 3600      NS        dns1.visjusz.pl.
    visjusz.pl. 3600      NS        dns2.visjusz.pl.
    www 3600 A        78.47.223.37
    So if you see, i tried to config it in many ways, but dns server are not working:( Log of daemon is clear. I don't have any idea what i do wrong. I tried everything what i found in google but without results... Please help
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. visjusz

    visjusz New Member

    Thanks man! Now i must waiting for set glue record on;)
     
  4. visjusz

    visjusz New Member

    OK, all is working good;) Problem was that i added to dns serwer domain: visjusz.pl not houseofworkshops.pl, when i change it, it start working;) Thanks man for glue suggestion
     
    Last edited: Jan 23, 2012

Share This Page