#1  
Old 31st July 2012, 19:40
trinitron trinitron is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need a little dns help

I have just install the

The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)

everything work perfect
I have only one small problem. When I what to see a webpage inside my network my fuc..... router an Cisco RV220W route the me to it's management page.

If I go to another internet connection the page works fine it is only when I'm inside the same network.
What is the easy way to see the pages local.

Kind Regards
Kasper
Reply With Quote
Sponsored Links
  #2  
Old 31st July 2012, 21:00
NeonNexxus NeonNexxus is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Thanks: 0
Thanked 2 Times in 1 Post
Default DNS Server

whats your dns configuracion on the client computer?
Why not set the DNS server on the ubuntu box create the zones there for your internal network and then put your client computers to use your Ubuntu server as your dns server that way you can bypass any dns query and do it locally.
Ed
Reply With Quote
  #3  
Old 31st July 2012, 21:30
trinitron trinitron is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your quick reply

My DNS configuration on my client just use the router.

I'm rather new to linux do you know of any tutorials to setup as your suggestion

kind Regards
Kasper
Reply With Quote
  #4  
Old 1st August 2012, 02:21
NeonNexxus NeonNexxus is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Thanks: 0
Thanked 2 Times in 1 Post
Default Well a quick google search gave me back this.

I do not use Ubuntu myself that much i am a CentOS and SUSE flavor kinda guy.
Try this.
http://ubuntuforums.org/showthread.php?t=236093
If that wont work for you I will be online with skype ed.quevedo if you need further assistance.
Always glad to help here where myself have found lots of help.
DUHHH .. did not read until now you already installed BIND .. you have the dns server there ..
Best of the tutorials are falkos tuts.
So now just create the zones.

Last edited by NeonNexxus; 1st August 2012 at 02:29.
Reply With Quote
  #5  
Old 1st August 2012, 14:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
Default

Quote:
Originally Posted by trinitron View Post
I have just install the

The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)

everything work perfect
I have only one small problem. When I what to see a webpage inside my network my fuc..... router an Cisco RV220W route the me to it's management page.

If I go to another internet connection the page works fine it is only when I'm inside the same network.
What is the easy way to see the pages local.

Kind Regards
Kasper
Make sure that the DNS records point to your router's public IP and that your router is configured to forward all needed ports (e.g. 80 for http) to your server.

If that doesn't work, chances are that either your ISP is blocking port 80 or that your router doesn't support loopbacks.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 5th August 2012, 11:39
trinitron trinitron is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hallo Falko

I think you have misunderstod me.
You can see websites. DNS records are setup up for the ip-adress every thing is forwarded and so.

But if you hare inside the local-network. Then the router overrules and forward it to the cisco management adress.
Reply With Quote
  #7  
Old 5th August 2012, 20:52
trinitron trinitron is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by NeonNexxus View Post
I do not use Ubuntu myself that much i am a CentOS and SUSE flavor kinda guy.
Try this.
http://ubuntuforums.org/showthread.php?t=236093
If that wont work for you I will be online with skype ed.quevedo if you need further assistance.
Always glad to help here where myself have found lots of help.
DUHHH .. did not read until now you already installed BIND .. you have the dns server there ..
Best of the tutorials are falkos tuts.
So now just create the zones.

Hallo NeonNexxus

How do I create the zones you mention sĺ i can use it as local DNS

Kind Regards
Kasper
Reply With Quote
  #8  
Old 6th August 2012, 18:44
NeonNexxus NeonNexxus is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Thanks: 0
Thanked 2 Times in 1 Post
 
Default Hi Trinitron

Normally it depends on your Bind (DNS server) config.
Default config for CentOS is inside /var/named/chroot ..
I will have a look at the Ubuntu but my guess is that it is the same.

Make sure that in /etc/hosts, the hostname of the server has been pointed to the IP address of the server. It should look like below:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.137.2 mail.mydomain.com mail
::1 localhost6.localdomain6 localhost6


Create a file /var/named/chroot/var/named/mydomain.com with the following configuration:

;
; Addresses and other host information.
;
@ IN SOA mydomain.com. hostmaster.mydomain.com. (
2011030801 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum

; Define the nameservers and the mail servers

IN NS ns.mydomain.com.
IN A 192.168.137.2
IN MX 10 mail.mydomain.com.

mail IN A 192.168.137.2
ns IN A 192.168.137.2



Edit the /var/named/chroot/etc/named.conf file to match the mydomain.com

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
forwarders { 8.8.8.8; };
};
include "/etc/rndc.key";
// We are the master server for mydomain.com

zone "mydomain.com" {
type master;
file "mydomain.com";
};

Start named on the server

/etc/init.d/named start



If you need further help skype me.
ed.quevedo
Thanks
Ed

Last edited by NeonNexxus; 6th August 2012 at 18:49.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS data from Standalone servers to Primary DNS server SamTzu Tips/Tricks/Mods 7 15th November 2009 13:38
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 19:51
Google Apps dayjahone General 19 29th March 2008 17:25
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34


All times are GMT +2. The time now is 02:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.