Question - How to associate a new DNS record with the server

  • is there a way to add a new CNAME into the BIND db file for the server, without having it applied to all domains on the server?


    The only method I can see right now is to modify the db_e.tpl file - but that is used for domains as well as the server itself.


    The problem I'm trying to solve is that under a multiple server scenario with secondary name servers, the DNS names have to be under the correct $ORIGIN.


    Here is the scenario:


    I have Server "A", with the name server1.domain.tld
    Server "A" holds domain.tld
    I also have Server "B", with the name server2.domain.tld
    I also have 2 secondary name servers that server1 and server2 transfer to.


    If I add information about server2.domain.tld into the DNS of domain.tld, it does not become available in either secondary DNS. I believe what is happening is that when the admin.server'x'.domain.tld zone is transfered to the secondary, it, being the more specific zone, overwrites what was defined for that $ORIGIN in the domain.tld zone.


    The short of it is that I cant add names and pointers for the actual servers under domain.tld's DNS management. And because the file itself is overwritten whenever a new client is added, I cant use a static file.


    However, I need to get the additional information into the server specific zones to allow for inter-machine communications. This is something specific to the servers themselves - I'd prefer not to have it in the zone files for customers.


    Any suggestions?


  • Hello ;


    All your problem will be solved withe the MyDNS plugin, which is under development. See https://github.com/i-MSCP/plug…ee/master/incubator/MyDNS


    This plugin is based on the NicTool. Don't try it now. It's not ready to use. It will be released ASAP.


    Right now, you can use hook system to add your cname record in the bind zone file (panel zone file)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().


  • Looking at the plugin on github, you've got quite the ambitious project ahead of you (on top of iMSCP as well). I look forward to its completion.


    In the mean time I guess I'm left with updating /etc/hosts files.. not very elegant but it has worked in the past.