Bind server configuration error

0

I followed this tutorial to install a dns server on my local network: link
My idea is to access intranet.empresa in the pcs of the network and fall in the ip 10.0.0.220 that is a web server. I did all the procedures in the tutorial, but when I test the server through my machine that has the ip 10.0.0.108 with the bind command, I get the following error message:

$ dig intranet.equilibra

; <<>> DiG 9.9.5-3-Ubuntu <<>> intranet.equilibra
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 50519
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;intranet.equilibra.        IN  A

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

;; Query time: 268 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Jul 24 09:27:23 BRT 2014
;; MSG SIZE  rcvd: 122

Did I get into something?

    
asked by anonymous 24.07.2014 / 14:29

2 answers

2

If you are not going to use dnsmasq (as suggested by Rafael), look at the dns configuration of client machines in the /etc/resolv.conf file. It should look like the one below:

search intranet.equilibra
nameserver 10.0.0.220

Do not put the google DNS IPs here, as this will cause the client to resolve valid names on the internet. Instead, configure your DNS server to forward queries to other servers if the name can not be resolved by it, as dvm said. See the tutorial: ubuntu tutorial

    
16.09.2014 / 19:38
1

You are conducting the query on the DNS server 8.8.8.8, if your server is for internal use only, you should perform the DNS queries for this domain directly on it, not on the internet.

    
24.07.2014 / 17:46