Declare DNS servers in my domain register provider

Discussion in 'General' started by raspdroid, Feb 8, 2017.

  1. raspdroid

    raspdroid Member

    I have 2 dns servers in the same static ip.

    hostname -
    hostname -

    What do i have to put in the control panel of my domain register provider ?

    A records pointed to dns1 and dns2?

    Best regards
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    you can not run 2 public dns on the same ip
  3. raspdroid

    raspdroid Member

    Thanks for the clarification.

    Then I will use two IPs. In differents locations. - -

    Then in my domain provider control panel do I have to add two A records? dns1 pointer to and dns2 pointer to

    And change provider dns for and ?

    Best regards
  4. raspdroid

    raspdroid Member

    I was referring to the public IP, which I use for each server (Mail, Web, Db ...) But in the local network each host has a unique IP. Did you mean local IP or public IP?
  5. sjau

    sjau Local Meanie Moderator

    Why not? I do the same. Denic won't allow it for .de TLDs but you can do it for other TLDs.

    ; <<>> DiG 9.9.5-9+deb8u9-Debian <<>>
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22539
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
    ; EDNS: version: 0, flags:; udp: 4096
    ; IN A
    ;; ANSWER SECTION: 3600 IN A
    ;; ADDITIONAL SECTION: 1932 IN A 1932 IN A
    ;; Query time: 28 msec
    ;; SERVER:
    ;; WHEN: Wed Feb 08 17:48:31 CET 2017
    ;; MSG SIZE rcvd: 127
  6. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    I think it depends on what the registrar allows (what checks they implement).
  7. raspdroid

    raspdroid Member

    I tested the dns of sjau in my domain (GoDaddy) and can be added. Check if the names are different but not if the ip is different.

    I added an A record dns1 pointing to my public ip. It looks like this. I will add the second and try to change the domain dns to see if it works.

    Last edited: Feb 9, 2017
  8. raspdroid

    raspdroid Member


    Public IP:
    Local IP's:
    gateway: - - -

    Client: clientC1
    E-mail: [email protected]
    Refresh: 7200 seconds
    Retry: 540 seconds
    Expire: 604800 seconds
    Minimum: 3600 seconds
    TTL: 3600 seconds

    A mail
    A www
    TXT v=spf1 mx a ~all (ispconfig3 master server)

    On the router I have open port 53 to ( but I do not know which port to open for ( because the router does not allow me to open the same port for more than one ip address. Is it possible to use another port? For example the 54?

    In System --> Server Services --> Web/Yes - File/Yes the rest No. --> DNS/Yes - the rest No. --> DNS/Yes - the rest No. :: Is mirror of Server:

    Can you tell me what I'm doing wrong?

    Best regards
  9. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    That is exactly the issue, and why @florian030 said:
    DNS always uses port 53, there is no way to run 2 separate DNS servers behind a NAT by a simple port forward. If your router/firewall supports a load balancer (particularly one that monitors if the servers it's forwarding to are actually answering), look into using that. If all you have is port forwards, pick one server or the other and forward there.
  10. raspdroid

    raspdroid Member

    Thank you!

    I changed another public IP ( In the master database added to the root user with privileges for the public ip

    In the firewall of (ufw) I opened the ports udp/tcp 53 and tcp 3306, on the router of I opened ports udp/tcp 53 and tcp 3306.

    In ISPConfig 3 --> System --> Server Config --> I changed the IP address to

    In Domain register I changed A record dns2 to dns2



Share This Page