LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-07-2002, 11:39 AM   #1
buttnutt
Member
 
Registered: Dec 2001
Location: Dallas, TX
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
Question DNS and BIND


I am running a DNS server with BIND 9. Here is my named.conf file (I replaced my real IP and domain name info with fake stuff).

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address 10.1.1.1 port 53;
};

//master
zone "test.com" IN {
type master;
file "test.com.zone";
allow-update { none; };
};

//reverse
zone "1.1.10.in-addr.arpa" IN {
type master;
file "1.1.10.zone";
allow-update { none; };
};

This server is visible on the Internet. The DNS server is registered and works fine.

My question is regarding my machine within my internal network. I specify this DNS server as my only DNS server in my network properties. When I browse the Internet, my DNS server is able to resolve any FQDN. How is that possible? I am not specifying a location of a root.hints file or anything like that.

I thought my DNS would only resolve names that were stored in my zone files.

Any ideas?
 
Old 06-08-2002, 11:46 AM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
check your /etc/resolv.conf
when running dns server, your server takes care of your own domains + serves for any other dns checks, that's why we use them right?
 
Old 06-08-2002, 01:21 PM   #3
buttnutt
Member
 
Registered: Dec 2001
Location: Dallas, TX
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
my resolv.conf has only one entry for my own DNS server.

thats it.
 
Old 06-08-2002, 04:13 PM   #4
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
If you want your dns to resolve only local domains, don't allow him go outside on internet or remove root.hints.
the good thing about it is that you can resolve bogus domains as well as fqdn. so you can setup tld letsay mynet and have www.mylinux.mynet as your home website
 
Old 06-08-2002, 04:38 PM   #5
buttnutt
Member
 
Registered: Dec 2001
Location: Dallas, TX
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
Look at my post a little closer.

All my machines use one DNS server which is my own.

I do not have a root.hints file on my DNS server.

All my machines query one DNS server on my network to resolve host names.

My DNS server doesnt include any other nameserver in my zone files or resolv.conf.

When I use a machine on my network to access the Internet, all URLs as resolved.

My DNS server is somehow resolving these requests from my machines somehow.

My question was, How?

My zone files only have entries for machines on my network.

Resolv.conf has 2 entries
search test.com
nameserver 10.1.1.1

understand?

How can my DNS server resolve host name on the Internet, when it has no reference to any other nameservers??
 
Old 06-08-2002, 06:02 PM   #6
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
no you have to have another dns doing the job, or root.hints read by your dns
 
  


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 (bind) njdownes Linux - Networking 3 02-28-2005 09:15 AM
DNS Bind TKS Linux - Networking 6 05-03-2004 12:30 AM
bind and dns? Digital_Err0r Linux - Newbie 5 03-18-2004 05:23 PM
DNS and Bind pharpe Linux - Networking 3 01-15-2003 02:54 PM
DNS and BIND dilberim82 Linux - General 10 07-13-2001 10:31 AM

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

All times are GMT -5. The time now is 02:39 AM.

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