Hi All, I have an Ubuntu 14.04 server with ISPConfig3. I have a domain hosted on that server, (lets say mydomain.com) but with the DNS nameservers for mydomain.com hosted with a hosting company. What I would like to do is to set the Ubuntu server as my local DNS server, using DHCP in the router, and set up DNS records on the Ubuntu server for my local network only. Hnece, if I set my mail client POP server to mail.mydomain.com it checks my local DNS server, as per DHCP, and receives the IP address of my Ubuntu server. When I am out and about, using mobile broadband or whatever, my computer then checks the ISP's DNS server and receives the WAN IP address for my connection, and thus connects to the mail server from outside. I know I could add mydomain.com to the hosts file on each computer, but that would fail when I am outside my LAN, so I would prefer the local Ubuntu DNS server to handle it and the DNS server be assigned by DHCP. I have set up the DNS records up in DNS in ISPConfig3, but trying to ping one of the records, server.mydomain.com, results in an unknown host. It appears that my Ubuntu server is checking the authoritative DNS servers for mydomain.com first, before checking its own records for the same domain. I hope I have explained this approriately. Is there any way in which I can get all this to happen?
Thanks Srijan, I take it to mean the hosts file on each of the workstations? Not the hosts file on the server?