LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2006, 01:18 PM   #16
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49

First, this should be a new post, as it has different questions than the original.

2nd, you can do what you propose, but the only people who will be able to see those sites will be on your LAN. As you have already seen, with a single address, and your router serving a web page at that address, you'll never get past the router at port 80. You could run the sites on different ports (1 per machine), and forward traffic to those ports through the router to the correct internal address.

You could also turn off webadmin, and then you could forward port 80 to any one computer behind the router.

For named itself, you need to add zones into named.conf, and then add the zone itself into wherever your installation stores zone files. Once that it done, your internal BIND will give the local IP address of those sites to your LAN. You also have to reload/restart BIND once you make those changes, before they will take effect.

Peace,
JimBass
 
Old 07-28-2006, 02:26 PM   #17
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
thanks for the answer. I can't turn off the webadmin interface and yes my websites can be seen from outside the LAN with no problem. The one that has the problem it;s me because I don't know how to request virtualhosts directly to the server using a browser.
What I need exactly what you said, my nameserver to send internal users to the correct virtualhosts. I added the zone with the file describing the domain and reset bind, but it did not work. when I DIG the domain from my pc, bind keeps on querying the external dns. This is what I added:

named.conf

view "external-192" {
// you could use 'any' or even 'localnets' here
// instead of specifying each IP range
// however, it should be noted that 'localnets'
// means ANY network Bind is directly connected
// to which might include your ISP
match-clients { 192.168.11.0/29; 127/8; };
zone "11.168.192.in-addr.arpa" {
type master;
file "pz/192.168.11";
allow-update {
none;
};
};
zone "mydomain.biz" {
type master;
file "pz/mydomain.biz";
allow-update {
none;
};
};
};

and this is the mydomain.biz file

$TTL 1D

@ 1D IN SOA localhost. root.localhost. (
42 ;serial (d. adams)
3H ;refresh
15M ;retry
1W ;expiry
1D ) ;minimun

mydomain.biz A 192.168.11.3
www CNAME mydomain.biz

I have a little idea of what I did but I'm not a pro. 192.168.11.3 is the localhost and apache server by the way. Would appreciate any help. Thank you.
 
Old 07-28-2006, 07:18 PM   #18
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
This should be a new thread, as it has NOTHING to do with the original post.
 
Old 07-29-2006, 12:45 PM   #19
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
ok I'll put a new one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Configure BIND DNS to Answer Active Directory Queries ghight LinuxAnswers Discussion 1 07-04-2007 10:46 AM
DNS and bind kevinm2 Linux - Networking 1 06-15-2005 11:18 PM
help configure these BIND /DNS files adengua Linux - Networking 0 03-02-2004 07:26 AM
DNS and BIND buttnutt Linux - Networking 5 06-08-2002 07:02 PM
DNS and BIND dilberim82 Linux - General 10 07-13-2001 11:31 AM


All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration