How to configure DNS for a target Domain

  • Im abit confuse about how to target client domain


    for example client create abc.com


    then i went to example namecheap.com for a purchase domain. How to i target the server.... Ns1? or A? or ip? i have no idea which one to use.

  • Hello,


    This depend on your i-MSCP setup.


    I. Usage of i-MSCP DNS server (You've choosen bind9 for DNS server during i-MSCP setup)


    Here, I assume that the domain abc.com has been already created in the i-MSCP panel.

    • Your customer must register a glue record through the namecheap.com registrar interface: ns1.abc.com -> <ip>. Note that this can be take a bit time to be recorded.
    • Once that the glue record is ok, your customer must change the DNS server through the namecheap.com registrar interface. Here, he must use ns1.abc.com

    Note that the <ip> tag must be replaced by the IP that you assigned to the customer when you have created the domain through the i-MSCP panel


    Note also that here, I've described the usual procedure. Some registrars make the procedure more simpler. E.g, when you change the nameserver, they also register the glue record into the Registry.


    For namecheap, see:

    II. Usage of an external DNS server (you've choosen the external server option during i-MSCP setup)


    Your customer must change his abc.com DNS zone to add the following DNS resource records:

    Code
    1. abc.com. IN MX <imscp_server_hostname>.
    2. abc.com. IN A <ip>
    3. www.abc.com. IN CNAME abc.com.
    4. *.abc.com. IN A <ip>

    This is generally done through the registrar interface too because most of time, if you don't use the i-MSCP DNS server, you use the default DNS servers which are provided by your registrar (here namecheap.com).


    Note that the <ip> tag must be replaced by the IP that you assigned to the customer when you have created the domain through the i-MSCP panel and that the <imscp_server_hostname> tag must be replaced with the FQHN of your i-MSCP server (hostname -f).


    Be aware that here, I'm only talking about the primary DNS server.

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

  • I was using the 2nd method


    but seems like configuration wrong
    I can't put i n (IN) and domain some doest not fits the fill in blank =/


    when i put in host
    IN (i manage to get into server by in.datechbase.xyz)
    look like host is the (sub) but i can't leave it empty to enter datechbase.xyz


    by the way i was interested to setup bind9 method. Any instruction how to setup link =)

  • The IN (class field) is optional and most of registrars don't include it in their non-expert DNS management interface. For the rest, I don't understand what you mean... I see like a red message at bottom of your screenshot but you cutted it. It is your real domain showed in the interface. If yes, I get not result when I query it atm:


    meaning that something is currently wrong on the registrar side. E.g, your changes were not applied somewhere.


    See also: http://serverfault.com/questio…he-in-mean-in-a-zone-file

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

  • Ok the setting i set looks ok =) for external DNS
    But the page is other things else?

  • <solve> all done correctly above just have to wait to TTL time to live



    Sent from my iPhone using Tapatalk