By mechnotech
Please, help.
It is work. When I test it with dig, answer correct: [olegh@bsd ~]$ dig dns.emercoin.com NS ;; ANSWER SECTION: dns.emercoin.com. 1229 IN NS SEED2.emercoin.com. dns.emercoin.com. 1229 IN NS SEED1.emercoin.com.
If I ask for DNS-record directly from that server, it works, too:
[olegh@bsd ~]$ dig @SEED2.emercoin.com aaa.dns.emercoin.com ;; ANSWER SECTION: aaa.dns.emercoin.com. 4001 IN A 192.168.0.120 aaa.dns.emercoin.com. 4001 IN A 127.0.0.1
(answer IPs aren’t correct, this is for test only)
Thus, my custom DNS server works.
[olegh@bsd ~]$ dig aaa.dns.emercoin.com
; <<>> DiG 9.8.3-P4 <<>> aaa.dns.emercoin.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 50374 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION: ;aaa.dns.emercoin.com. IN A
;; AUTHORITY SECTION: dns.emercoin.com. 430 IN SOA SEED1.emercoin.com. hostmaster.dns.emercoin.com. 1411503131 3600 900 1209600 1800
;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Sep 23 18:55:56 2014 ;; MSG SIZE rcvd: 91
Can you help me to understand, why DNS requests are not reached my name servers?
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!
How it should be set up:
zone "dns.emercoin.com" {
type master;
file "/etc/bind/zone.dns.emercoin.com";
};
zone file should look something like this:
$TTL 500
;$ORIGIN dns.emercoin.com.
@ SOA localhost. root.localhost. (
300100000 ; serial
21600 ; refresh after 6 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day
;
;
@ IN NS localhost.
aaa IN A 192.168.0.120
bbb IN A 192.168.0.121
ccc IN A 192.168.0.122
I hope this helps you out.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.