Create A and NS record for same Host name

Hi everyone,

I am trying to set up acme-dns which requires

  • NS record for auth.example.org pointing to auth.example.org (this means, that auth.example.org is responsible for any *.auth.example.org records)
  • A record for auth.example.org pointing to 198.51.100.1

After creating the A record for auth.example.org, I was not able to create an NS record to point auth.example.org to auth.example.org

Can anyone please tell me how I can create both records?

Thank you.

You would create the A record on the DNS server you delegated to with the NS records. Otherwise the NS records are not needed and you simply need an A record.

Hi,

Thanks for the reply.

Can you please tell me what you mean create the A record (on the DNS server you delegated to which is Cloudflare) with the NS record?

Cloudflare is already the NS for example.org so there would be no reason to re-delegate NS to the same zone. Instead you would just create the A record (after deleting the unnecessary NS records).

1 Like

Thanks for the quick response.

For the application I am trying to run, if you check Full-DNS of his base domain acme-dns.io you can see it has

NS acme-dns.io bonnie.ns.Cloudflare.com 21599
NS acme-dns.io pablo.ns.Cloudflare.com 21599

if you search auth.acme.-dns.io, you got

A auth.acme-dns.io 46.4.128.227 3599
NS auth.acme-dns.io ns.auth.acme-dns.io 3599

As the author of this app uses Cloudflare to manager his domain DNS (from his base domain NS record), why could he add A record and NS record for the same host name auth.acme-dns.io?

He has delegated that (sub)domain to a DNS server that is not on Cloudflare. I have no idea why he did that, you’d need to ask them. Seems entirely unnecessary to me since Cloudflare could provide the same answer for auth.acme-dns.io directly.

dig acme-dns.io ns +short
bonnie.ns.Cloudflare.com.
pablo.ns.Cloudflare.com.

dig ns.auth.acme-dns.io +trace

; <<>> DiG 9.12.3 <<>> ns.auth.acme-dns.io +trace
;; global options: +cmd
. 78 IN NS g.root-servers.net.
. 78 IN NS h.root-servers.net.
. 78 IN NS i.root-servers.net.
. 78 IN NS j.root-servers.net.
. 78 IN NS k.root-servers.net.
. 78 IN NS l.root-servers.net.
. 78 IN NS m.root-servers.net.
. 78 IN NS a.root-servers.net.
. 78 IN NS b.root-servers.net.
. 78 IN NS c.root-servers.net.
. 78 IN NS d.root-servers.net.
. 78 IN NS e.root-servers.net.
. 78 IN NS f.root-servers.net.
. 78 IN RRSIG NS 8 0 518400 20190716050000 20190703040000 59944 . W1vYI61spFrUhNeXRujlMpLwgZzKKDN7kXF3MZi7KwV7vHvwH2JBbm6c lndA6c/ejluDpM5tqfoUltoUkkXXEuOmP2/IEKKahUG7vIaHDXTIQxZE lXsGDStgYy0kj17ysa7645Cp2MRGaCxcMn8IUdJtC0w2TVJyIcaUiwhh FByuoqO9K9FjJQTapK8ciCFdE16rNE7o/CuIogu/7fGeB0B1Wwq0xabq 0yWGCLfz5ZbSsJQJJqnO+oDnoQE2w5dNdw8d5xswfbUm3Wu1mu5NDxUC 9y2Suw0CIRhe1IjgfH/nDxXHcqPih/ryVFD4F8eDJ97/ochTv6bcVsUL ya5oQQ==
;; Received 717 bytes from 162.159.36.7#53(162.159.36.7) in 7 ms

io. 172800 IN NS b0.nic.io.
io. 172800 IN NS a0.nic.io.
io. 172800 IN NS c0.nic.io.
io. 172800 IN NS a2.nic.io.
io. 86400 IN DS 57355 8 1 434E91E206134F5B3B0AC603B26F5E029346ABC9
io. 86400 IN DS 57355 8 2 95A57C3BAB7849DBCDDF7C72ADA71A88146B141110318CA5BE672057 E865C3E2
io. 86400 IN RRSIG DS 8 1 86400 20190716130000 20190703120000 59944 . tLFJnRwHqI8HrZCgL19nELqtB6toNQvQEE9ee587Gwta7tINJQZZbLMf Ys8Y5g3zLqdCdrRadS2VlAwZd4qGo2XGrTrEADCHq5Y9gCsmxYK2892w HxW/MGRnG0v9AG+x1DTnPYYCcn7x/nIbkJWh5j/1BEzgavXfWXjjE617 ZOzH+S44r7S8LdTj8UiFg8eRbtrdQiiSmZAy43Xsxppouclb6aTTZUIA AxduUZaoKXenQ6F3der9BhWMyoFsE2QAHTdc0zD0L4DEvWGzm5mc0Wzt UWnDbi8aung3XmR10ZArRWyq3nPm/eiHOhgryDrmF4LtptIN+q8QtfeT nQu8RA==
;; Received 695 bytes from 192.112.36.4#53(g.root-servers.net) in 21 ms

acme-dns.io. 86400 IN NS bonnie.ns.Cloudflare.com.
acme-dns.io. 86400 IN NS pablo.ns.Cloudflare.com.
2iui5t1khct6c5o8i2i67rppatgvegqo.io. 900 IN NSEC3 1 1 1 D399EAAB 2IV073DVU92DLMV2H5L9G1PEODM9RDE6 NS SOA RRSIG DNSKEY NSEC3PARAM
2iui5t1khct6c5o8i2i67rppatgvegqo.io. 900 IN RRSIG NSEC3 8 2 900 20190724152150 20190703142150 30990 io. nJRYBcOo9T4zS2GyQ0IwSY4KIbfxYr5yiys6+TN3GsMk7Vtk8z0icj7S 7kdjM3D4OQ/ogXKwoo6cIwndoyvnYbov4ouDyX7ADnFxJ/ka46z+D2t7 5WlqnDuPCXNK+U0v21qWzG4+I5T0bQi0qn3MPi3F/pH/sFBekrZwOFHH Xys=
obqpvj943o06nm014e646in2ktocesgn.io. 900 IN NSEC3 1 1 1 D399EAAB OC119PGMKJEU7A6RQNT45S8LRB0RCUNU NS DS RRSIG
obqpvj943o06nm014e646in2ktocesgn.io. 900 IN RRSIG NSEC3 8 2 900 20190722151538 20190701141538 30990 io. J15isQtxOCbSNRAKuRKC7mZh09pSU60vlOSb7u9r8sXBFbyWCs0pl6Z6 Uvl4YvhtB9Mg5SLW1tNkh06UeSFEk7RcNeYeMpFEc1GuuOyGMTLy8+Bs e0KwrtNBYxkAP4OXVLtqemJY1hWftTPG/xFIgIjVT52cAlRUJLFMupAK xoY=
;; Received 625 bytes from 65.22.162.17#53(c0.nic.io) in 14 ms

ns.auth.acme-dns.io. 300 IN A 46.4.128.227
;; Received 64 bytes from 173.245.58.76#53(bonnie.ns.Cloudflare.com) in 14 ms

dig ns.auth.acme-dns.io +short
46.4.128.227

Thanks for your quick response.

I will talk to the app developer directly to find out why he needs to do it.

Have a good day ahead.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.