dns configuration

dns configuration

Post by Kalle Kataikk » Fri, 02 Nov 2001 17:47:55



Hi.

Ive got a little problem regarding my dns server configuration, hope you
can help me with this one...

Ive set up a dns server for my domain, and everything is (nearly) ok, just
two problems:

First:
When I surf from my local net, I cant contact my website (www.mydomain.com),
the dns server returns a "no record for www.mydomain.com, cant resolv IP...

The problem is that my website is on an external server, not on a local one,
cause I dont want to have a www server on my net, causes a lot of extra
wor.
How do I tell my bind 8 dns server that the address is not on my local net,
but on an external IP? If I use only the dns server of my ISP, everything
works fine...
How do I tell this in named.conf?

Second:
Im using squid as a proxy, on the same machine with dns, but squid doesnt
understand to use my local dns, but goes directly to my ISP:s dns, causing
intranet.mydomain.com not to be visible, if I dont use squid with my
browser, I can se the address intranet.mydomain.com.
Ive heard that I have to modify resolv.conf in some way, now resolv.conf
looks like:
nameserver    my own dns ip
nameserver    ISP IP
nameserver    ISP IP2

Is this correct?
I heard that I would have to put "forward" in front of my ISP:s IP numbers,
or something?

Thanks for any answers!

 
 
 

dns configuration

Post by Villy Kru » Fri, 02 Nov 2001 20:03:16


On Thu, 1 Nov 2001 10:47:55 +0200,

Quote:>Second:
>Im using squid as a proxy, on the same machine with dns, but squid doesnt
>understand to use my local dns, but goes directly to my ISP:s dns, causing
>intranet.mydomain.com not to be visible, if I dont use squid with my
>browser, I can se the address intranet.mydomain.com.
>Ive heard that I have to modify resolv.conf in some way, now resolv.conf
>looks like:
>nameserver    my own dns ip
>nameserver    ISP IP
>nameserver    ISP IP2

>Is this correct?
>I heard that I would have to put "forward" in front of my ISP:s IP numbers,
>or something?

That won't work as the second and third name server would never ever be
used as long as the first name server entry is responding.

You need to have your own dns server serve both internal and external
names, and the easiest way is to set it up as a normal caching name
server and then add zone files for your internal names and IP numbers.
Just make sure your name server isn't used from the outside by properly
setting up ACL configuration.

Alternatively, use DNS for external names only and /etc/hosts for internal
names.

Villy

 
 
 

dns configuration

Post by Kalle Kataikk » Fri, 02 Nov 2001 20:48:19


How do I turn my dns to catching dns?



> On Thu, 1 Nov 2001 10:47:55 +0200,

> >Second:
> >Im using squid as a proxy, on the same machine with dns, but squid
doesnt
> >understand to use my local dns, but goes directly to my ISP:s dns,
causing
> >intranet.mydomain.com not to be visible, if I dont use squid with my
> >browser, I can se the address intranet.mydomain.com.
> >Ive heard that I have to modify resolv.conf in some way, now resolv.conf
> >looks like:
> >nameserver    my own dns ip
> >nameserver    ISP IP
> >nameserver    ISP IP2

> >Is this correct?
> >I heard that I would have to put "forward" in front of my ISP:s IP
numbers,
> >or something?

> That won't work as the second and third name server would never ever be
> used as long as the first name server entry is responding.

> You need to have your own dns server serve both internal and external
> names, and the easiest way is to set it up as a normal caching name
> server and then add zone files for your internal names and IP numbers.
> Just make sure your name server isn't used from the outside by properly
> setting up ACL configuration.

> Alternatively, use DNS for external names only and /etc/hosts for internal
> names.

> Villy

 
 
 

1. DNS configuration problem

I am trying to configure my DNS on Linux Slackware 3.3.  All the things in
DNS HOWTO are done.  When I try to run nslookup, I got the following error
message.

**Can't find server name for address 127.0.0.1: No response from server
** Default servers are not available.

I can ping and telnet myself with 127.0.0.1.
I can give more details if someone care to help me!

Luc Saucier

2. Samba file transfers slow from Linux to Windows.

3. DNS Configuration

4. Samba/PPP problems

5. Failures in nmbd and netbios-ns/udp

6. DNS configuration to access INTERNET - LAN

7. ISDN/T-1: Suggestions for boards to use with linux?

8. DNS configuration problems with 9.2 SERVFAIL

9. DNS Configuration

10. DNS configuration error in Solaris 8/IA OK now, thx all

11. Mail or DNS configuration?

12. DNS Configuration