Bind9 DNS server - configuration issues

Discussion in 'Installation/Configuration' started by Wiched, Oct 30, 2011.

  1. Wiched

    Wiched New Member

    In few words i want to set reverse dns for my existing domain from godaddy and use it as host on irc network. I followed this tutorial to set the Bind9 server.

    The way my network is set is this:
    Internet comes to my router with the real static ip and then it comes to my linux machine.I'm not that familiar with setting dns servers so i have few questions and problems. What DNS should i set to the domain on godaddy (they are like ns1.xXX.XX) and i can't set it to my ip address.Second when I nslookup something i got this error:

    Code:
    atlantius@Lemuria:~$ nslookup lemuria
    Server:		199.207.13.100
    Address:	199.207.13.100#53
    
    ** server can't find lemuria: NXDOMAIN
    

    This is my Bind9 config:
    named.conf.local
    Code:
    #FORWARD LOOKUP ZONE - Holds A records, maps hostnames to IP's
    zone "pozitivensvqt.com"
    {
    	type master;
    	file "/etc/bind/zones/pozitivensvqt.com.db";
    };
    
    
    
    
    #REVERSE LOOKUP ZONE - Holds TRP records, maps IP's to hostnames
    zone "0.207.199.in-addr.arpa"
    {
    	type master;
    	file "rev.0.207.199.in-addr.arpa";
    };
    
    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.
    
    	 forwarders {
    	 	199.207.13.1;
    		91.92.178.193;
    		85.187.216.3;
    		8.8.8.8;
    		8.8.4.4;
    	 };
    
    	auth-nxdomain no;    # conform to RFC1035
    	listen-on-v6 { any; };
    };
    

    pozitivensvqt.com.db

    Code:
    $TTL 3D
    @	IN SOA Lemuria.pozitivensvqt.com.	admin.pozitivensvqt.com. {
    2007031001;
    28800;
    3600;
    604800;
    38400
    };
    
    pozitivensvqt.com.	IN	NS	Lemuria.pozitivensvqt.com.
    Lemuria			IN	A	199.207.13.100
    www			IN	CNAME	Lemuria
    
    rev.0.207.199.in-addr.arpa

    Code:
    $TTL 3D
    @	IN	SOA	Lemuria.pozitivensvqt.com.	admin.pozitivensvqt.com. {
    2007031001;
    28800;
    604800;
    604800;
    86400
    };
    	IN	NS	Lemuria.pozitivensvqt.com.
    100	IN	PTR	Lemuria.pozitivensvqt.com.
    1	IN	PTR	gw.pozitivensvqt.com.
    
    If you can tell me what i did wrong with the bind9 and how to set it up right to use my real domain as host in irc it would be great.

    Regards
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You must set the reverse DNS at your hoster (or whoever gave you the IP address).
     

Share This Page