LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-27-2003, 01:21 AM   #1
MightyCranium
LQ Newbie
 
Registered: Jun 2002
Location: Twin Cities, Minnesota
Distribution: SUSE 9
Posts: 9

Rep: Reputation: 0
Question Internal DNS server / Webserver


Greetings.

Having a super frustrating time figuring out what I am doing.

Here is the scenario.

I am running SUSE 8.0. I would like to set up an internal
DNS server so that all machines internal to my network will
know how to find the webserver.

The webserver works fine from the outside world, the whole issue
is for internal machines.

When an internal machine tries to look at a webpage, it goes out
to the nameserver on my ISP, and comes back and tells it to
go to another internal machine. All this crossing of the Cisco
back and forth causes the source and destination packets to
get goofy, and it winds up pointing me to my Router instead of
my webserver (even though, remember, the server works fine
on port 80 from the outside world).

Ergo, according to Cisco, what I want to do is setup an internal
DNS server, so that internal machines go to the internal DNS
server first, and never have to cross out into the cold cruel
network world... they just stay inside.

I have the webserver listed on the /etc/hosts list,
and have "files" listed first in the conf file, but it still ain't doin
it's thing.

Ideas? Ack....
 
Old 03-27-2003, 01:54 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
Re: Internal DNS server / Webserver

Quote:
Originally posted by MightyCranium

I have the webserver listed on the /etc/hosts list,
and have "files" listed first in the conf file, but it still ain't doin
it's thing.
What do you mean by this? Do you have only entries in /etc/hosts? Do you have BIND or any other DNS server installed?

In your case, I don't think you need DNS server. It's much easier, in my opinion, to make a file like /etc/hosts (in Windows its HOSTS, but you need to search for the path), insert your web server name and IP and give a copy to every machine in your local network.
DNS server is better in many cases (you don't need to copy the file to every new machine), but it takes processor and memory.
 
Old 03-27-2003, 02:11 PM   #3
MightyCranium
LQ Newbie
 
Registered: Jun 2002
Location: Twin Cities, Minnesota
Distribution: SUSE 9
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, I have BIND installed

My issue also involved virtual hosts
defined in apache.

If it were only the Linux machine that were requiring
the webserver access, it wouldn't much matter, but
there are varying Windows clients as well, so wouldn't
setting my linux box up as a DNS server, and pointing
to it as the primary DNS server on all internal
boxes of every flavor be the most efficient way of doing it?

Are you suggesting that I would simply add the
virtual hosts to an /etc/host file and it would
be sufficient?

Sorry for my confused state, I blame it on my upbringing.

;-)
 
Old 03-27-2003, 02:29 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
Quote:
Originally posted by MightyCranium

If it were only the Linux machine that were requiring
the webserver access, it wouldn't much matter, but
there are varying Windows clients as well, so wouldn't
setting my linux box up as a DNS server, and pointing
to it as the primary DNS server on all internal
boxes of every flavor be the most efficient way of doing it?
If there are many machines and many virtual hosts, BIND is an easier solution. It's just a matter of the number of machines...
Quote:
Are you suggesting that I would simply add the
virtual hosts to an /etc/host file and it would
be sufficient?
Yes, it would be.

If you plan to use DNS, make sure you have /etc/named.conf, right zone files etc. What does not work? Any error messages?
 
Old 03-27-2003, 02:33 PM   #5
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Mara's suggestion would have been great, until you mention the virtual hosts. If you have a large number of hosts / clients then yes, setting up your own internal dns would be beneficial and eventually less work than updating multiple host files on various machines.

I just got through some of what you're covering in another thread. You might want to read through it and look at the various links that crop up - they explain what you're looking to do :

http://www.linuxquestions.org/questi...threadid=50864

However... this :

>All this crossing of the Cisco back and forth causes the source and destination packets to get goofy,

worries me. This should *NOT* happen, and leads me to believe that it's less the 'traffic' which is goofy and more your cisco router / network configuration.

In fact, it sounds more to me like you've had the wool pulled over your eyes and some techy has attempted to cut short his support call with some fluff about 'NAT'ing and /or source routing'. While the solution proposed to you should work the above should *never* happen and serves only to avoid the problem rather than solve it.

Slick.
 
Old 04-02-2003, 12:11 AM   #6
MightyCranium
LQ Newbie
 
Registered: Jun 2002
Location: Twin Cities, Minnesota
Distribution: SUSE 9
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, farther along. Still not there though.

Here are the issues left to resolve at this point.

1. Something is amiss with my CNAME definitions, but I don't
know what. Internal machines can go to the
www.blah.com virtual websites from Apache no problem,
but if you try to go to http://blah.com, it goes to the
default website. Now this is the case with each and every
one of my virtual sites, so its a config issue in the zone db
files (I assume). No errors in the messages, and when I
do an nslookup on them both (www.blah.com, blah.com)
they both point to the same IP address properly, just
something in my CNAME apparently ain't doin the thing because
they both work fine from EXTERNALLY out on the internet.


AND....


2. My Win2K machines internal to the network are pointed to
my Linux DNS machine, and apparently are using it fine,
but since i have the DNS server defined as 10.10.10.9,
it lists the server on nslookup as "UnKnown".

I tried creating an lmhosts file on the box, but either I don't
know what the heck I am doing, or I am barking up the wrong
tree. How do I go about defining local 10.10.10.X addresses
to my Windows boxes?
 
Old 04-02-2003, 01:17 AM   #7
MightyCranium
LQ Newbie
 
Registered: Jun 2002
Location: Twin Cities, Minnesota
Distribution: SUSE 9
Posts: 9

Original Poster
Rep: Reputation: 0
No need to reply. I found my error.

In my virtual host setup in Apache, I had neglected to
set the ServerAlias flag.

Doing so, fixed my problem.

Thanks much for your help!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup Internal DNS Server loufeliz Linux - Networking 1 01-28-2005 01:59 PM
Running internal DNS server with Astaro firewall jester_69 Linux - Security 0 01-20-2005 06:47 PM
Internal DNS server needed?? jme Linux - Networking 5 09-30-2004 06:53 PM
dns and 500 internal server error.. Flawless Slackware 4 08-23-2003 11:08 PM
Info on setting up internal web/dns caching server. l0f33t Linux - Networking 1 05-25-2003 09:42 AM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration