Custom Name Servers

Discussion in 'General' started by abintipl, Oct 27, 2012.

  1. abintipl

    abintipl New Member

    Hi,

    I have some questions on Name Servers (DNS)

    1. Do I need 2 servers to set up name servers like ns1.mydomain.com * ns2.mydomain.com?

    2. Can I use the same name server mentioned above as Webserver & Mail Server

    3. Any latest thread for setting up DNS similar http://www.howtoforge.com/ispconfig_dns_godaddy

    Please advice

    Thanks
     
  2. falko

    falko Super Moderator

    Some registrars require you to have nameservers on different IP addresses, and the sense of having at least two nameservers is redundancy in case of a problem, so you *should' have two nameservers. But technically it's possible to use just one.

    Yes.

    http://www.howtoforge.com/how-to-ru...and-secondary-with-ispconfig-3-debian-squeeze
     
  3. abintipl

    abintipl New Member

    Dns

    Dear Sir,

    Thank you so much for your help & I also found the same thread & followed to set up with 2 VPS http://www.howtoforge.com/how-to-ru...and-secondary-with-ispconfig-3-debian-squeeze.

    I am facing problem on the Second Server configuration,

    Select language (en,de) [en]: <-- ENTER

    Installation mode (standard,expert) [standard]: <-- expert

    Full qualified hostname (FQDN) of the server, eg server1.domain.tld [server2.example.com]: <-- ENTER

    MySQL server hostname [localhost]: <-- ENTER

    MySQL root username [root]: <-- ENTER

    MySQL root password []: <-- yourrootsqlpassword

    MySQL database to create [dbispconfig]: <-- ENTER

    MySQL charset [utf8]: <-- ENTER

    Then I get message

    The next two questions are about the internal ISPConfig database user and password.It is recommended to accept the defaults which are 'ispconfig' as username and a random password.
    If you use a different password, use only numbers and chars for the password.

    ISPConfig mysql database username [ispconfig]:<Enter

    ISPConfig mysql database password [350d6a9505a28afec6476d2c5bbd265d]: <Enter

    Shall this server join an existing ISPConfig multiserver setup (y,n) [n]: y

    MySQL master server hostname []: ns1.example.com

    MySQL master server root username [root]:<Enter

    MySQL master server root password []: My Server1 MySql Root Pwd

    MySQL master server database name [dbispconfig]:<Enter

    Unable to connect to mysql server

    MySQL master server hostname []:


    Please advice

    Thanks & regards,

    Abin
     
  4. abintipl

    abintipl New Member

    Dns

    Sir,

    Please ignore my last message, I am able to configure 2nd server & have followed instructions as per link http://www.howtoforge.com/how-to-ru...and-secondary-with-ispconfig-3-debian-squeeze as well as ISpconfig Manual.

    Now My present set up is as under

    Server 1: ns1.mydomain.com >>> Web.Mail, ftp & DNS 1
    Server 2: ns2.mydomain.com >>> ONLY DNS 2

    I have mydomain.com registered with Blue host & have set custom Name servers as
    ns1.mydomain.com with IP xx.xxx.xxx.11
    ns2.mydomain.com with IP xx.xxx.xxx.22

    My another domain "myweb.com" which is registered with Godaddy & have set Name servers as ns1.mydomain.com ns2.mydomain.com

    I have added "myweb.com" under websites on server 1 & can access the same in my web browser whereas "mydomain.com" is also added under websites on server 1 but can not access "mydomain.com"

    I also ran DNS wizard & have Two DNS Zones & settings are as under

    Zone 1

    A mydomain.com. xx.xxx.xxx.11 0
    A mail xx.xxx.xxx.11 0
    A www xx.xxx.xxx.11 0
    MX mydomain.com. mail.mydomain.com. 10
    NS mydomain.com. ns1.mydomain.com. 0
    NS mydomain.com. ns2.mydomain.com. 0

    Zone 2(SOA) - myweb.com

    A myweb.com. xx.xxx.xxx.11 0
    A mail xx.xxx.xxx.11 0
    A www xx.xxx.xxx.11 0
    MX myweb.com. mail.myweb.com. 10
    NS myweb.com. ns1.mydomain.com. 0
    NS myweb.com. ns2.mydomain.com. 0

    Further, if I run from SSH from another server dig @mydomain.com any myweb.com then I get an error "dig: couldn't get address for 'ns1.mydomain.com': not found

    mxtoolbox.com, I can get results for DNS for myweb.com & not for mydomain.com

    Your help / guidance would really be highly appreciated.

    Thanks and regards,

    Abin
     
  5. till

    till Super Moderator

    You missed to add DNS A-records for ns1.mydomain.com. and ns2.mydomain.com. in the zone mydomain.com.
     
  6. abintipl

    abintipl New Member

    Dns

    Sir,

    Thank you for your reply.

    I have added 2 A records manually as

    DNS Zone > A record>

    Hostname : ns1.mydomain.com.
    IP : xx.xxx.xxx.11

    Hostname : ns2.mydomain.com.
    IP : xx.xxx.xxx.22

    After that, I can access site www.mydomain.com

    Further, please confirm if I have to add Server 2 IP A record for NS2.mydomain.com in DNS zone of Server 1

    Thanks & regards,

    Abin
     
  7. till

    till Super Moderator

    When server 2 is a slave dns server or a mirror setup, then you have to add all records only on server 1 as all changes get mirrored to the slave dns server automatically.
     
  8. abintipl

    abintipl New Member

    Dns

    Dear Si,

    Thank you very much for your advice & it is really helpful to setup my servers with name servers like ns1.mydomain.com & ns2.mydomain.com.

    I have one more questions on DNS, My System>Server Config looks like as under;

    IP Address:xx.xxx.xxx.11
    Netmask : 255.255.255.0
    Gateway: xx.xxx.xxx.1 ( this address I collected vi /etc/network/interfaces)
    Hostname :ns1.mydomain.com
    Nameservers: 192.168.0.1 , 192.168.0.2 ( These are by default)

    If I run vi /etc/resolv.conf then my hosting data centre's are
    xx.xxx.xxx.33
    xx.xxx.xxx.44

    Sir, my question is should I replace Name servers from 192.168.0.1 , 192.168.0.2 to xx.xxx.xxx.11 & xx.xxx.xxx.22 or xx.xxx.xxx.33
    xx.xxx.xxx.44

    Please advice

    many thanks & regards,

    Abin
     

    Attached Files:

  9. till

    till Super Moderator

    The network configuration is disabled, so the nameserver and Ip settings do not matter but you can replace the nameserver IP addresses there if you like. The nameservers mentioned on this page are the servers that your server uses to resolve external domains and not the nameservers of your domain.
     
  10. abintipl

    abintipl New Member

    Multi

    Sir,

    Refer to post # 3 of this thread, I am trying to set up my final Multi-setup to go live but I am not able to install ISpconfig3 on Slave server(my set up is on 2 servers, I have very carefully followed all the installation steps,

    I get an error "Unable to connect to mysql server" while on slave server on ispconfig installation


    I made only one change on Master Installation is of ISpconfig default port 8080 to 50

    Do you think, the port change makes a difference?

    Please advice

    Thanks & regards,

    Abin
     
  11. abintipl

    abintipl New Member

    Multi

    Dear Sir,

    Now, I am able to connect to Master server & have also changed port 8080 from 50,

    Since My Master server has 2 Ips & Slave has only one. I added to
    Master as well as Slave server in vi/etc/hosts

    xx.xxx.xxx.33 virtual-ip1.mydomain.com,

    Upon removal of this line, I am able to connect to Master server from Slave

    Further, my # Master Server vi /etc/network/interfaces looks like

    # The primary network interface
    auto eth0
    iface eth0 inet static

    address xx.xxx.xxx.11
    netmask 255.255.255.0
    network xx.xxx.xxx.0
    broadcast xx.xxx.xxx.255
    gateway xx.xxx.xxx.1

    auto eth0:0
    iface eth0:0 inet static

    address xx.xxx.xxx.33
    netmask 255.255.255.0
    network xx.xxx.xxx.0
    broadcast xx.xxx.xxx.255
    gateway xx.xxx.xxx.1

    # Slave Server vi/etc/network/interfaces

    # The primary network interface
    auto eth0
    iface eth0 inet static

    address xx.xxx.xxx.22
    netmask 255.255.255.0
    network xx.xxx.xxx.0
    broadcast xx.xxx.xxx.255
    gateway xx.xxx.xxx.1

    Please advice on following questions;

    1. Can I use port 50 instead of default 8080 of ispconfig under multi server setup?

    2. Do I need to add xx.xxx.xxx.33 virtual-ip1.mydomain.com on both Master as well as Slave ( vi/etc/hosts)?

    3. In Multi setup under vi/etc/hosts, does the line xx.xxx.xxx.11 ns1.mydomain.com OK or should it be xx.xxx.xxx.11 ns1.mydomain.com ns1

    4. Was the problem "unable to connect" because I did not add eth0:0 under system>Server ip address in ispconfig admin panel

    On hearing I would redo my set up with a fresh install so that later I do not have issues with my set up

    Thanks and regards,

    Abin
     
  12. abintipl

    abintipl New Member

    Multi

    Sir,

    really need your advice,

    Thanks & regards,

    Abin
     
  13. fuad121

    fuad121 New Member

    Thanks for your effective post. I know something for your post.abintipl
     
  14. abintipl

    abintipl New Member

    Reply

    Hi,

    @fuad121 - I know something for your post.abintipl - ?

    Could you please advice

    Thanks
     
  15. abintipl

    abintipl New Member

    Help

    Hi all,


    Can any one help me on following questions;

    1. Can I use port 50 instead of default 8080 of ispconfig under multi server setup?

    2. Do I need to add xx.xxx.xxx.33 virtual-ip1.mydomain.com on both Master as well as Slave ( vi/etc/hosts)?

    3. My 2 server set up is running but My Master Server has one Extra IP, how to add it, please help

    Thanks and regards,

    Abin
     
  16. fuad121

    fuad121 New Member

    I have no enough knowledge for server.

    Regards
    FUAD
     

Share This Page