Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried to configure bind in Ubuntu 12.10 32 bit , but when I am using dig I am not getting the correct response. I should have got the IP of my server instead of getting it of remote site with that address.

dig akashnetwork.com

; <<>> DiG 9.8.1-P1 <<>> akashnetwork.com   
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 26923 
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;akashnetwork.com.      IN  A

;; AUTHORITY SECTION:
com.            900 IN  SOA   a.gtld-                             servers.net.               nstld.verisign-grs.com. 1364540296 1800 900 604800 86400

 ;; Query time: 427 msec
 ;; SERVER: 127.0.1.1#53(127.0.1.1)
 ;; WHEN: Fri Mar 29 13:06:12 2013
 ;; MSG SIZE  rcvd: 107

named.conf.local :

//  
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "akashnetwork.home" IN {
type master;
file "/etc/bind/zones/akashnetwork.home.db";
};

zone "56.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.56.168.192.in-addr.arpa";
};

names.conf.options :

    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 {
    8.8.8.8;
    8.8.4.4;
 };

//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys.  See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;

auth-nxdomain no;    # conform to RFC1035
listen-on-v6 { any; };
  };

akashnetwork.home.db :

 akashnetwork.com.      IN      SOA     ns1.akashnetwork.com. (
                                                    201303113
                                                    28800
                                                    3600
                                                    604800
                                                    38400
)

akashnetwork.com.      IN      NS              ns1.akashnetwork.com.

www              IN      A       192.168.56.20  
ns1              IN      A       192.168.56.20

rev.56.168.192-in-addr.arpa :

@ IN SOA ns1.akashnetwork.com. (
                    2001303029;
                    28800; 
                    604800;
                    604800;
                    86400 
)

                 IN    NS     ns1.akashnetwork.com.
1                    IN    PTR    akashnetwork.com
share|improve this question
    
Does dig www.akashnetwork.com work? –  Eric Carvalho Mar 29 '13 at 14:32
    
@EricCarvalho : Nopes..It gives details of the remote host only. –  Novice User Apr 1 '13 at 17:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.