Error in bind server configuration

Asked

Viewed 406 times

0

I followed this tutorial to install a dns server on my local network: http://goo.gl/vkVC0A
My idea is to access intranet.empresa on the network pcs and fall on ip 10.0.0.220 which is a web server.
I did all the procedures in the tutorial, but when I test the server through my machine that has 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

I freaked out about something?

2 answers

2

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

search intranet.equilibra
nameserver 10.0.0.220

Do not put google DNS Ips here, as this will slow down the customer solving valid names on the internet. Instead, set up your DNS server to forward queries to other servers if the name cannot be solved by it, as dvm said. See the tutorial: tutorial Ubuntu

1

You are performing 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 and not on the internet.

  • But both my machine which I am consulting, as the server dns, need to go out to the internet. :/

  • I took the dns from google and I was able to access through intranet.equilibra. But I can’t get out to internet.

  • I changed the nameserver of the dns server to 127.0.0.1. It works. But it takes a long time! There is no way in the machines I go out for a google dns and other dns be internal no?

  • I got! search intranet.equilibra<br>&#xA;nameserver 10.0.0.220<br>&#xA;nameserver 8.8.8.8<br>&#xA;nameserver 8.8.4.4

  • @Rafaelsoufraz recommend using the dnsmasq for this purpose, you will be able to perform the configuration in a simplified way. On the DNS server you can configure the Forwarders so that it forwards the requests you don’t know directly to the internet. Otherwise, you can configure it not to forward any request, just respond to requests from domains registered on it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.