Which IP use for DNS?

Discussion in 'Installation/Configuration' started by Martinss, Jun 19, 2009.

  1. Martinss

    Martinss New Member

    Hello there! I have connection like Internet(IP:111.111.111.111) > Router(IP:192.168.1.1) > Server(IP:192.168.1.5). All neede ports ar opened and forwarded(53 udp/tcp). Which IP i need to type in server settings and in dns settings? I need to type the IP of outside network (111.111.111.111) or a local network (192.168.1.5)?

    [​IMG]
    [​IMG]
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Always use your external IP for DNS and your internal in the website settings and server settings.
     
  3. Martinss

    Martinss New Member

    Okay, thanks, all i need now is to let update dns. :)
     
  4. Martinss

    Martinss New Member

    Still doesen't works. Can't access throught domain. :( It is first time, that i let my server connect to internet throught router, before this on two other servers with ispconfig all was working good and first dns servers refreshed very fast. :(
     
  5. Turbanator

    Turbanator Member HowtoForge Supporter

    what info do you have listed in your dns records tab?
    also, are you port forwarding from your ip directly to this box within your router so port 53 from external is open directly to port 53 on your box (along with the other ports like 80)?
     
  6. Martinss

    Martinss New Member

    Info that i have listed in my dns records tab (DNS Manager > Site):
    [​IMG]

    Router forwarding (80 port from outside works - tested, then 53 port need to work too):
    [​IMG]


    But what confuses me is this (shows local area IP in section ISP Manager > Site):
    [​IMG]
     
  7. Turbanator

    Turbanator Member HowtoForge Supporter

    everything looks right to me even the last part. maybe you just need to wait for the dns to propogate so it points to your domain.

    also, do you have ns.lejup.lv registered as dns server at your name provider so it points to your external ip?

    and another question that I can't answer....look slike your server is your NS as well as the domain being hosted and I don't think that can work...but I could be wrong on that one. <--I really think I AM wrong on that last part.

    is this the same server that WAS direct but NOW behind router? if so, make sure you changed your ip address in /etc/hosts file.
     
    Last edited: Jun 20, 2009
  8. Martinss

    Martinss New Member

    The same config worked before - just without router. Now i reinstalled my system from 0 and I am behind router. :( Which IP i need in hosts file? My external or internal?
     
  9. Turbanator

    Turbanator Member HowtoForge Supporter

    you'll want you internal address in your hosts file
     
  10. Martinss

    Martinss New Member

    Still nothing. :(
     
  11. Turbanator

    Turbanator Member HowtoForge Supporter

    did you use a falko perfect server setup?

    I assume you have selinux disabled and the firewall turned off right? You don't need it since you have the router handling the open ports.
     
  12. Martinss

    Martinss New Member

    I did everything that is said HERE. :(
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats ok, it is the correct guide for ISPConfig 2.
     
  14. Martinss

    Martinss New Member

    So it looks like it is impossible for dns server to work throught router? :(
     
  15. themixer

    themixer New Member

    I seem to be having the same issues as this using the debian setup guide with ISPconfig 3. I can dig DNS internally fine, I have all ports open on the PFsense firewall but cannot connect on the internet to the DNS servers. Apache works fine. I have done the setup in 2 different locations with 2 different firewalls with the same result? Is it possible to run this behind NAT?
     
  16. Martinss

    Martinss New Member

    It seems, that ISPconfig developers don't have any solution. :(
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    This has not much to do with ISPConfig. Just configure your router so it forwards the dns port to your server. Please look at the router manual for details.
     
  18. Martinss

    Martinss New Member

    Till, read the first post:

     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    Then contact your provider and ask them if they allow to run dns servers, otherwise they might have blocked the port from their side.
     
  20. Martinss

    Martinss New Member

    My provider doesen't block any port.
     

Share This Page