Nameserver Problem

Discussion in 'HOWTO-Related Questions' started by marm26, Feb 10, 2009.

  1. marm26

    marm26 New Member

    Hi guys.

    I am trying to add a new domain on my server. I want it to have its own nameserver ns.mydomain.com

    I followed the steps outlined here:
    http://www.howtoforge.com/ispconfig_dns_godaddy

    However I can't get my newly set up nameserver to resolve the domain correctly.

    dig @ns1.mydomain.com any mydomain.com

    never returns this line:
    mydomain.com. 86400 IN SOA ns1.mydomain.com. hostmaster.mydomain.com. 2006060705 28800 7200 604800 86400

    So I guess the domain is not properly resolved by my nameserver.

    I have read somewhere that ISPConfig only allows two nameservers. Well I got another domain on an add on ip using its own nameservers. Might this be causing the problem?

    Any help with this is greatly appreciated.

    Thanks in advance.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What does it return?

    What's in the zone file and in named.conf?
     
  3. marm26

    marm26 New Member

    dig @ns1.mydomain.com any mydomain.com returns the following:

    /etc/named.conf contains the following

    the zone file for mydomain.com in /var/named/pri.mydomain.com looks like this:

    I hope that helps.
     
  4. marm26

    marm26 New Member

    after I added ns1.mydomain.com as an A record again the dig command now returns this:

    Still doesnt look like this is right.
     
  5. falko

    falko Super Moderator Howtoforge Staff

    What do
    Code:
    dig @ns1.mydomain.com mydomain.com
    dig @ns1.mydomain.com www.mydomain.com
    dig @ns1.mydomain.com mail.mydomain.com
    display?
     
  6. marm26

    marm26 New Member

    dig @ns1.mydomain.com mydomain.com

    dig @ns1.mydomain.com www.mydomain.com

    dig @ns1.mydomain.com mail.mydomain.com

    The all seem to refer to the godaddy nameserver not my own???
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Did you tell GoDaddy that you want to use your own nameservers for that domain?
     
  8. marm26

    marm26 New Member

    Yes I did. I made added the new nameserver in a record. I added them in Host Summary, then pointed the domain to this new nameserver.

    After this didnt work i tried something else. I have reset all the abouve changes. Now i am simply pointing the domain to an already established nameserver on ISPConfig. (I use this for another domain, actually I wanted those domains to be complety sepertated, hence I tried to add another nameserver)

    But I am getting the same result. The nameserver does not properly resolve the new domain. Why is this not working? Everything in ISPCOnfig is set up 100% correctly. At least the things I can see inside the graphical interface...
     
  9. marm26

    marm26 New Member

    Ok I seem to have found the problem but I have no idea how to fix it.

    I restarted BIND and checked my server logs. BIND is loading the zone file for the first domain on my server but not the zone file for the new domain I wanted to add.

    Any ideas on how to fix this?
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Any errors or warnings in /home/admispconfig/ispconfig/ispconfig.log?
    What's the output of
    Code:
    ls -la /root/ispconfig
    ?
     
  11. marm26

    marm26 New Member

    There are two warnings in /home/admispconfig/ispconfig/ispconfig.log

    ls -la /root/ispconfig outputs the following

     
  12. falko

    falko Super Moderator Howtoforge Staff

    Is that zone listed in your named.conf? Can you post your named.conf here?
     
  13. marm26

    marm26 New Member

    Yes this zone is contained in /etc/named.conf

     
  14. marm26

    marm26 New Member

    I also checked the files in /var/named/

    The file pri.domain1.com and pri.mydomain.com look the same to me. However the file pri.mydomain.com is shown in green color inside the named folder whereas the file pri.domain1.com is shown in white? Don't know what this is supposed to mean but its about the only thing that looks strange to me here.
     
  15. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /var/named/
    ? Sounds as if the permissions differ...
     
  16. marm26

    marm26 New Member

    ls -la /var/named/ outputs the following:

     
  17. falko

    falko Super Moderator Howtoforge Staff

    Hm, both zone files have the same permissions...
     
  18. marm26

    marm26 New Member

    Ok the nameserver problem is solved. I hired somebody to solve it. Don't ask me how. I would really like to share but i didn't quite understand what he did.

    The thing is now that the domain is resolved correctly there is another problem. I cant point mydomain.com to any IP other then the IP of domain1.com.

    Any other domain I choose in ISPconfig will go to the shared ip page and not to the root of mydomain.com. Can't use the Server IP, Can't use a third domain i added, I can only use the IP of domain1.com.(all domains I am talking about here are up and running)

    Really I am kind of losing it here. I feel like winning the lottery twice on the same day in a negative way (better make this sitting in a plane crash twice on the same day). Unbelievable how those micro baby steps can fail two work.

    Any help with this would be greatly appreciated.

    Thanks...
     
  19. falko

    falko Super Moderator Howtoforge Staff

    For the website settings, you must use one of the IP addresses that you see in the output of
    Code:
    ifconfig
    , or you will get the Shared-IP page.
     
  20. marm26

    marm26 New Member

    Sure that's what I did. Still it's not working.

    There are three IPs in ifconfig. However It only works if I choose the IP of my nameserver. Using one of the other two IPs gets the shared IP error.
     

Share This Page