If using only Ispconfig as NS no connection to internet

Discussion in 'Installation/Configuration' started by enmi, Nov 18, 2009.

  1. enmi

    enmi New Member

    Hi!

    When i used ispconfig 2 i could set my network settings and use the ip of the ispconfig 2 server as DNS and i could also access internet..

    In ispconfig 3 this doesnt work i have to have both the ispconfig 3 dns server and the ip-adress of the router. How would i go about fixing it so i would only need the ispconfig 3 ip adress as dns-server and being able to access internet?
     
  2. till

    till Super Moderator

  3. enmi

    enmi New Member

    Would it be enough to do only the dnsmasq part on the ispconfig 3 server? from the article at http://www.howtoforge.com/mydns_mydnsconfig_dnsmasp_on_ubuntu_edgy:

    Installing DNSMasq
    MyDNS does not contain a DNS resolver that is able to resolve DNS records that MyDNS is not athoritive for. In the next step I will install and configure the DNS resolver and cache DNSMasq to act as a local DNS resolver and configure MyDNS to use DNSMasq to resolve external domains. If you don't want your server to resolve external domains, you can skip this part.

    Create a DNS Resolver on IP 127.0.0.1:

    apt-get install dnsmasq

    This installs the dnsmasq Ubuntu package. Now we will have to edit the DNSMasq and MyDNS configuration files to ensure that both pacakges won't listen on the same port on all IP addresses.

    vi /etc/dnsmasq.conf

    listen-address=127.0.0.1
    no-dhcp-interface=
    bind-interfacesNow edit the mydns.conf file to configure MyDNS to not listen on 127.0.0.1:

    vi /etc/mydns.conf

    no-listen = 127.0.0.1
    recursive = 127.0.0.1Then edit /etc/resolv.conf:

    vi /etc/resolv.conf

    and add the following line as first line so that the DNSMasq DNS-Cache is used for all local DNS queries, too:

    nameserver 127.0.0.1
     
  4. till

    till Super Moderator

    Yes. Only do the dnsmasq part.
     
  5. enmi

    enmi New Member

    Ok i have done the changes to the config files started dnsmasq..

    Changed the DNS-server field on the client to the ip-address of the ispconfig3 machine.. but i cant reach the internet.

    My router/gateway that my isp has provided has the ip-adress 192.168.1.254 and when i have that number also in the dns-server field on the client i can reach the internet. the reason i want this setup is for local LANS and such where the config of the Internet connection can often differ.. :D
     

Share This Page