DNS Issue help please


Recommended Posts

ok i have been trying to setup DNS

 

i am following this guide

 

http://ubuntuforums.org/showthread.php?t=236093

 

ok so my domain name is haggis.tech

ip is 192.168.0.64

 

is this ok?

 

so following the guide

 

Step 3

this is my file

//
// 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 "haggis.tech" {
        type master;
        file "/etc/bind/zones/haggis.tech.db";
        };

# This is the zone definition for reverse DNS. replace 0.168.192 with your network address in reverse notation - e.g my network address is 192.168.0
zone "0.168.192.in-addr.arpa" {
     type master;
     file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
};

my /etc/bind/named.conf.options is

	 forwarders {
	 	8.8.8.8;
	 };

my /etc/bind/zones/haggis.tech.db

// replace haggis.tech with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
haggis.tech.      IN      SOA     ns1.haggis.tech. admin.haggis.tech. (
// Do not modify the following lines!
                                                        2006081401
                                                        28800
                                                        3600
                                                        604800
                                                        38400
 )

// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// haggis.tech = domain name
haggis.tech.      IN      NS              ns1.haggis.tech.
haggis.tech.      IN      MX     10       server.haggis.tech.

// Replace the IP address with the right IP addresses.
server              IN      A       192.168.0.64
ns1              IN      A       192.168.0.64

my /etc/bind/zones/rev.0.168.192.in-addr.arpa

//replace haggis.tech with yoour domain name, ns1 with your DNS server name.
// The number before IN PTR haggis.tech is the machine address of the DNS server. in my case, it's 1, as my IP address is 192.168.0.1.
@ IN SOA ns1.haggis.tech. admin.haggis.tech. (
                        2006081401;
                        28800; 
                        604800;
                        604800;
                        86400 
)

                     IN    NS     ns1.haggis.tech.
64                    IN    PTR    haggis.tech

and on server i get

root@server:~# dig haggis.tech

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> haggis.tech
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29070
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;haggis.tech.			IN	A

;; Query time: 11 msec
;; SERVER: 192.168.0.64#53(192.168.0.64)
;; WHEN: Mon Feb 17 19:23:16 2014
;; MSG SIZE  rcvd: 29

and on my laptop which is 192.168.0.55

 

i get this for dig haggis.tech

haggis@haggislap:~$ dig haggis.tech

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> haggis.tech
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8121
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;haggis.tech.			IN	A

;; AUTHORITY SECTION:
.			79340	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2014021701 1800 900 604800 86400

;; Query time: 33 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Mon Feb 17 19:24:13 2014
;; MSG SIZE  rcvd: 104

Link to comment
Share on other sites

Are both (or any) of the computers pointing at the DNS server in /etc/resolve.conf?

 

You can try running dig with the @server parameter anyway, to force the DNS server name to be queried:

dig @192.168.0.64 haggis.tech

If you get a correct answer there then look into setting the DNS nameserver in your network options.

Link to comment
Share on other sites

i was being a complete idiot

 

my laptop was using dhcp :(

 

so when i was changing resolve.conf to look to the server it was defaulting back to 192.168.0.1 which is my router lol

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.