11-28-2017 07:42 AM
When configuring name servers for a zone (either manually for the zone or with groups), how do I specify a custom name to use for that name server?
Essentially what I want is when someone does a "dig ns <domain>", they get ns1.<domain> and ns2.<domain>. Right now the results returned are the hostnames of the name servers.
I tried making the grid primary and grid secondaries stealth, and then adding external primary name servers. But the GUI complained that the IPs used for the external primaries were duplicated with the grid primary/secondary.
Any ideas how I would accomplish this?
11-28-2017 07:45 AM
You have to name the Gird Member according to the name you want to see in the NS/A record.
Currently there is no way to change the name only for the zone.
12-11-2017 06:32 PM
I think you can work around this a bit. Though not recommended, but still you can try on your lab and see if it works.
Try the below:
- Server with hostname "ns1.infoblox.com" and IP x.x.x.x
- Authoritative zone "infoblox.com". This will automatically add the record "ns1" to the zone "infoblox.com" with the IP of the member (x.x.x.x)
- Authoritative zone "example.com". This zone has the Grid Primary "ns1.infoblox.com"
If I understand correctly, your requirement is that when we query for the NS record of the zone "example.com", we should get "ns1.example.com" instead of "ns1.infoblox.com" and if we resolve that NS, we should get the IP x.x.x.x
If the above is the requirement, then
- Edit the zone and mark the grid primary as stealth.
- Add "External Secondary" as "ns1.example.com" and add the IP 255.255.255.255 (placeholder IP)
- Create a CNAME record where "Alias" is "ns1" and the "Canonical Name" is "ns1.infoblox.com"
When you query for the NS of the zone "example.com", you'll get ns1.example.com instead of ns1.infoblox.com and when you try to resolve the A record for the NS, you'll get the server's actual IP address. But the problem is, while resolving the query, the output will contain that ns1.example.com is the cname for ns1.infoblox.com.
Let me know if this helps!