How make DNS in only one server

Discussion in 'Installation/Configuration' started by igel, Dec 4, 2009.

  1. igel

    igel New Member

    Hello,

    I have only one server with 2 IP addresses on the Internet.

    I had set this server reading "The Perfect Setup - Debian Etch (Debian 4.0)" at HowToForge(http://www.howtoforge.com/perfect_setup_debian_etch) with ISPConfig2 and set the DNS as was learned in the forum ISPConfig on this post(http://www.howtofore.com/forums/showpost.php?p=6292&postcount=4) from "falko" and everything works fine!

    Now,I upgraded this server with Debian Lenny (Debian 5.0) set this server reading "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]" at HowToForge(http://www.howtoforge.com/perfect-server-debian-lenny-ispconfig3) and install ISPConfig 3 but the DNS configuration as in was learned in the forum ISPConfig on this post(http://www.howtoforge.com/forums/showpost.php?p=6292&postcount=4) from "falko" is not working right and I do not know if it also works with ISPConfig 3

    Please, how can I make DNS work with only one server and two IPs with ISPConfig 3?

    Thanks in advance for your assistance,
    igel.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats really easy as nothing has to be configured for that. Simply install your server as described here:

    http://www.howtoforge.com/perfect-server-debian-lenny-ispconfig3

    And add both IP addresses in /etc/network/interfaces. Thats all. mydns is listening automatically on both IP adresses then.

    And now you can add all your domains in ispconfig with the dns wizard.
     
  3. igel

    igel New Member

    Sorry, I don't explained me very well. I had installed my server as described where you showed

    http://www.howtoforge.com/perfect-server-debian-lenny-ispconfig3

    But the problem is that I'm getting a connection refused message to the slave server

    Does the problem may be because I had to change the old to new network sets IPs, before it was:
    38.XXX.XXX.101 -> ns1.mydomain.com
    38.XXX.XXX.102 -> ns2.mydomain.com
    Change to:
    64.XXX.XXX.52 -> ns1.mydomain.com
    64.XXX.XXX.53 -> ns2.mydomain.com

    I changed files /etc/network/interfaces and /etc/hosts with new network sets, only, and not know it would have to change any settings in MyDNS?

    I am posting these reports:

    # dig @localhost mydomain.com

    ; <<>> DiG 9.5.1-P3 <<>> @localhost mydomain.com
    ; (2 servers found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 36641
    ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
    ;; WARNING: recursion requested but not available

    ;; QUESTION SECTION:
    ;mydomain.com. IN A

    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Fri Dec 4 23:44:54 2009
    ;; MSG SIZE rcvd: 31

    # netstat -tap | grep dns
    tcp 0 0 serv1.mydo:domain *:* LISTEN 2685/mydns
    tcp 0 0 localhost.locald:domain *:* LISTEN 2685/mydns
    tcp6 0 0 localhost:domain [::]:* LISTEN 2685/mydns

    # mydns
    mydns[19070]: ipv4_listerner: bind on socket 6 (TCP) failed: 127.0.0.1+53: Address already in use

    # mydns -v
    mydns[18996]: AXFR is enabled
    mydns[18996]: TCP ports are enabled
    mydns[18996]: DNS UPDATE is not enabled
    mydns[18996]: DNS NOTIFY is not enabled
    mydns[18996]: DNS IXFR is not enabled
    mydns[18996]: optional 'xfer' column found in 'dns_soa' table
    mydns[18996]: ipv4_listerner: bind on socket 6 (TCP) failed: 127.0.0.1+53: Address already in use
     
  4. igel

    igel New Member

    Sorry, please could someone help me find where the error is above?

    Thank you,
    igel.
     

Share This Page