Skip to main content

Zone Ownership and API Permissions

Comments

6 comments

  • cPanelLauren
    Hi @CanadaGuy The API expects the zone (or any zone) to be owned by a user unless the zone is associated with the hostname - in that case the zone is owned by the system and really is the only one that should be. What is the function you're using specifically?
    0
  • CanadaGuy
    Hi @CanadaGuy The API expects the zone (or any zone) to be owned by a user unless the zone is associated with the hostname - in that case the zone is owned by the system and really is the only one that should be. What is the function you're using specifically?

    For example, if you click to edit a zone created by the setup wizard, say the server hostname zone or NS zones, then I believe they show as owned by system, and they do not have mail server configuration (local or remote or auto, etc.). If you manually create a zone and don't assign it to a user, like the server hostname for a DNS only server and don't assign it to an account, then it will be owned by system, and shoe the mail server configuration at the bottom. I ran into this because I had initially created a new zone for dynamic DNS, and didn't want it associated with an account, so it would persist outside of the account should the account itself be deleted. All of this said, I changed my approach, and now use account zone records for dynamic DNS. Are there only two owners of a zone then? Use owned or system (root?) Owned?
    0
  • cPanelLauren
    Are there only two owners of a zone then? Use owned or system (root?) Owned?

    Yes, and the system/root zones should only actually be the hostname or root owned nameservers.
    0
  • CanadaGuy
    Yes, and the system/root zones should only actually be the hostname or root owned nameservers.

    Would it then make sense to perhaps restrict this or provide more info on the page? Noobs like me could use the help in those situations.
    0
  • cPanelLauren
    HI @CanadaGuy What do you mean by restrict? Just curious how what would be helpful for you in that respect. Thanks!
    0
  • CanadaGuy
    HI @CanadaGuy What do you mean by restrict? Just curious how what would be helpful for you in that respect. Thanks!

    Well, there are a couple things... 1) Maybe System could be in the "user" list, and be the default selection, the same way the current default of no selection results in the record being assigned to System. This consciously forces the user to default to System, or select an actual user and eliminates ambiguity for a new user of cPanel in particular. 2) Perhaps some improvement in consistency to the way System zones are created. This is perhaps more nit-picky than practical. When cPanel setup creates the A and NS records for the server host, if you go back to edit them after, there are no mail configuration details (Auto, Local, Remote, etc) at the bottom. However, if I as root manually create a System record, those configuration elements are included at the bottom. It seems that when cPanel setup creates the records, it uses a slightly different method which doesn't produce those configuration options. If I'm misinterpreting something, then perhaps this could be explained. System record with email config (i.e. manual zone add) 54849 System record without email config (i.e. cPanel setup) 54845
    0

Please sign in to leave a comment.