Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I have open port 53 in firewall, but my host cannot query the DNS
sudo firewall-cmd --permanent --add-port=53/tcp --zone=public
sudo firewall-cmd --reload
| NS | IP Address |
|---|---|
| ns1 | 192.168.0.11 |
| ns2 | 192.168.0.12 |
| Host | IP Address |
|---|---|
| host1 | 192.168.0.101 |
| host2 | 192.168.0.102 |
I can ping the ns from the host. But cannot query.
ronald8192@host1 ~ $ ping 192.168.0.11
PING 192.168.0.11 (192.168.0.11) 56(84) bytes of data.
64 bytes from 192.168.0.11: icmp_seq=1 ttl=64 time=0.239 ms
64 bytes from 192.168.0.11: icmp_seq=2 ttl=64 time=0.240 ms
^C
--- 192.168.0.11 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.239/0.239/0.240/0.015 ms
ronald8192@host1 ~ $ nslookup ns1.mydomain.com
;; connection timed out; no servers could be reached
The ns can query itself.
ronald8192@ns1 ~$ nslookup ns2.mydomain.com
Server: 192.168.0.11
Address: 192.168.0.11#53
Name: ns2.mydomain.com
Address: 192.168.0.12
Dear Mitchell, First of all, Thank you very much for your tutorial. I have follow all the step above to install and configure my DNS-rDNS server. However, my domain name cant found the ip. The severs cant be found when I dig or nslookup i got different IP. Beside that, my reverse DNS doesn’t work. I hope you can help to find a solution to my problem Looking forward to hear from you
Dear Mitchell Anicas First of all, thank very much for your help and prompt reply. My server is hosted in the cloud somewhere else, as you mention in the reply for DNS servers for name resolution (resolv.conf). That file contain the following: ; generated by /sbin/dhclient-script nameserver 110.74.128.72 nameserver 110.74.128.71 and when I comment those IPs and dig my domain it works fine in my server, when I dig in another PC or server it give me another IP. When I delete those IPs and Put my IP it works fine in my server but elsewere it doesn’t work. The last thing if I restart my server it neither work in my server nor another. How can I get solve this error. Once again thank you very much and looking forward to hear from you
Nice tutorial, I found one thing though that can cause an error in your logs if you don’t set it like it should be. No big deal, resolving works, but it should be fixed if you want your slave to be able to dump the master files.
On the slave server you configure the named.conf.local like this:
zone "nyc3.example.com" {
type slave;
file "db.nyc3.example.com";
masters { 10.128.10.11; }; # ns1 private IP
};
zone "128.10.in-addr.arpa" {
type slave;
file "db.10.128";
masters { 10.128.10.11; }; # ns1 private IP
};
Like that you will see an error in your /var/log/messages like this: dumping master file: tmp-oFPEZxEKPb: open: permission denied
Instead, if you configure your named.conf.local like this on the slave server:
zone "nyc3.example.com" {
type slave;
file "slaves/db.nyc3.example.com";
masters { 10.128.10.11; }; # ns1 private IP
};
zone "128.10.in-addr.arpa" {
type slave;
file "slaves/db.10.128";
masters { 10.128.10.11; }; # ns1 private IP
};
There will be no more errors and the master file can be dumped without issues.
This comment has been deleted
This comment has been deleted
I am a newbie in Centos and I now I am try to configure DNS and Reverse DNS server. After trying several times the error kept showing up and getting worst day by day. Now I am looking forward to get assistance from a good volunteer to help get rid of this error in order for my DNS and Reverse DNS server to work fine.
I will be pasting the content of the configuration files bellow for you to have clear pictur:
After the Installation and configuration when I use the dig command then I got the following dig masterdns.anisehq.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.2 <<>> masterdns.anisehq.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5226 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: ;masterdns.anisehq.com. IN A
;; ANSWER SECTION: masterdns.anisehq.com. 7199 IN A 110.74.133.89
;; Query time: 239 msec ;; SERVER: 192.168.101.4#53(192.168.101.4) ;; WHEN: Wed Aug 19 17:47:51 2015 ;; MSG SIZE rcvd: 55 It seems not been correct After the Installation and configuration when I use the nslookup command then I got the following nslookup 110.74.133.89 Server: 192.168.101.4 Address: 192.168.101.4#53
** server can’t find 89.133.74.110.in-addr.arpa.: NXDOMAIN There is problem with reverse DNS here
nslookup masterdns.anisehq.com Server: 192.168.101.4 Address: 192.168.101.4#53
Non-authoritative answer: Name: masterdns.anisehq.com Address: 110.74.133.89
Dear Respected, It is about a month now trying to install and configure DNS and Reverse DNS server and up to now I am struggling with it because I am a new bizz in it.
I am facing bellow error for your information I have two IPs Public and Private When I nslookup ns1.anisehq.com locally (DNS sever machine) nslookup ns1.anisehq.com
Server: 192.168.101.134 Address: 192.168.101.134#53 Name: ns1.anisehq.com Address: 192.168.101.134 (Private IP of my machine)
nslookup with the same network in the cloud
nslookup ns1.anisehq.com Server: 192.168.101.4 Address: 192.168.101.4#53
Non-authoritative answer: Name: ns1.anisehq.com Address: 110.74.133.89 (Public IP of my machine)
nslookup outside Network (WAN)
it show nothing nslookup ns1.anisehq.com ;;connection time out; no server could be reached
visit my blog please :)
thanks sir :)