LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-09-2020, 08:34 PM   #1
Bashed
Member
 
Registered: Jul 2015
Posts: 133

Rep: Reputation: Disabled
DNS Delegation on IPv4


I use my own ns1/ns2 for DNS delegation with ARIN. I edit rDNS per /24, per zone file via cPanel/WHM or SSH console. The zones are created via WHM interface, easily for me.

Now, recently I acquired a legacy block of IPv4 from an ISP. Because it's legacy, they're only able to do a reallocation in ARIN to my account and DNS can only be updated on the full subnet size, let's use /20 for example. I cannot do the usual per /24 DNS delegation in ARIN just because they are legacy IPs.

So my question is, if a client asked for full DNS delegation, like the example below, how would I set this up for them?

Code:
xxx.xxx.16.0/24
ns1.theirdomain.com

ns2.theirdomain.com
Whether it’s a /24 or larger, what would the dns zone file look like?

Below is an example of one created by cPanel and I update for individual IPs per /24, however a full DNS delegation I’m not sure how to do once I update the NS for the /20 with ARIN to point to ns1/ns2.mydomain.com

Example DNS zone for individual IPs on a /24

Code:
Filename: 36.222.111.in-addr.arpa.db
In summary, I will have to do full DNS delegation on the whole /20 legacy block to ns1/ns2.mydomain.com and then on my DNS server, will have to server /24 or larger DNS delegation per client as needed. This is where I do not know what the zone file should look like.
 
Old 12-13-2020, 03:09 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Bashed View Post
I use my own ns1/ns2 for DNS delegation with ARIN. I edit rDNS per /24, per zone file via cPanel/WHM or SSH console. The zones are created via WHM interface, easily for me.

Now, recently I acquired a legacy block of IPv4 from an ISP. Because it's legacy, they're only able to do a reallocation in ARIN to my account and DNS can only be updated on the full subnet size, let's use /20 for example. I cannot do the usual per /24 DNS delegation in ARIN just because they are legacy IPs.

So my question is, if a client asked for full DNS delegation, like the example below, how would I set this up for them?

Code:
xxx.xxx.16.0/24
ns1.theirdomain.com

ns2.theirdomain.com
Whether it’s a /24 or larger, what would the dns zone file look like?

Below is an example of one created by cPanel and I update for individual IPs per /24, however a full DNS delegation I’m not sure how to do once I update the NS for the /20 with ARIN to point to ns1/ns2.mydomain.com

Example DNS zone for individual IPs on a /24

Code:
Filename: 36.222.111.in-addr.arpa.db
In summary, I will have to do full DNS delegation on the whole /20 legacy block to ns1/ns2.mydomain.com and then on my DNS server, will have to server /24 or larger DNS delegation per client as needed. This is where I do not know what the zone file should look like.
You can assign subnets of the larger one you received. All that would be necessary is break it out in your routing and establish appropriate dns. For example, you received the subnet 111.222.32.0/20 which consists of IPs 111.222.32.0 thru 111.222.47.255. You then could assign 16 /24 subnets from that such as 111.222.47.0/24, 111.222.46.0/24, etc.

Create the zone files according to how that is broken out. You would have to be careful and use the appropriate subnet boundaries but not really difficult. There are lots of resources on the internet to help with defining subnets.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DNS subdomain delegation not working vincix Linux - Server 2 03-18-2018 11:22 AM
transitioning IPv4 router to dual IPv4/IPv6 psycroptic Linux - Networking 0 04-22-2014 01:44 AM
In tspc ipv6 tunnelling, does tunnel broker required for ipv4 to ipv4 communication? nyk.mat Linux - Newbie 2 08-13-2013 09:48 PM
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0 (CentOS 5.5) troiwulful Red Hat 3 11-22-2010 11:04 AM
Problems with reverse DNS and recursion with IP delegation RFC2317 mangueJOE Linux - Server 1 09-24-2010 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration