LinuxQuestions.org
Review your favorite Linux distribution.
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
  Search this Thread
Old 03-22-2004, 02:39 PM   #1
Pollyanna
Member
 
Registered: Oct 2003
Location: Germany
Distribution: Slackware 10.2, SuSE 10.0, Solaris(SPARC) 9+Solaris(x86) 9, NetBSD(sparc) 2.0.2
Posts: 43

Rep: Reputation: 15
Question DNS named and /etc/hosts


Hi to all,

I experience strange things going on wiht my local DNS. Sometimes I can "ping" the webserver in my DMZ and sometimes I can`t. 8-(

I sat up IPCop as a firewall/router with three NICs:
- first pointing to the Internet (DSL-modem)
- second pointing to the internal LAN
- third is connected to a DMZ with one webserver (the problemchild)

The DNS (192.168.10.6) in the LAN serves my local network perfectly and in
"/etc/named.conf" the queries for foreign hosts are forwarded to my gateway/firewall (192.168.10.1).
...
forwarders { 192.168.10.1; };
forward only;
...

The gateway (192.168.10.1) itself acts as a DNSproxy and puts queries through to the DNS supplied by my ISP. No problem.

*Lately* I sat up an old machine as a webserver in the DMZ.
It got a sepate network (192.168.11.0) an a seperate domain ("dmz.local" instead of "tux.local" for "192.168.10.0").

As a quick and dirty solution to the DNS-enty I used the "/etc/hosts/" of my gateway (DNSproxy).
127.0.0.1 localhost
192.168.10.1 bitgrab
192.168.11.2 www.dmz.local www

I could understand if the DNS doesn`t work *at all*. On the other hand, it woud be fine *if* DNS works all the time, but what is puzzeling me is the fact that it *sometimes* works and *sometimes* don`t. 8-(

(By the way, "pinging" the IP is no problem, so it is no networking problem but seems to be related to the DNS.)


I would be grateful for any suggestions or solutions.

Pollyanna
 
  


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
DNS named.conf path asyadiqin Linux - Newbie 1 08-11-2004 10:19 PM
RH9 & Apache Named Based Virt Hosts mwmethe Linux - Networking 1 11-03-2003 09:17 AM
named - dns - problems blaci Linux - General 2 07-22-2003 01:32 AM
[DNS/NAMED] What is the SOA? BxBoy Linux - Networking 1 03-09-2003 04:31 PM
[named/DNS] How do you create subdomains? BxBoy Linux - Networking 7 01-12-2003 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:49 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
Open Source Consulting | Domain Registration