LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-27-2007, 11:37 AM   #1
Blackout_08
Member
 
Registered: Jan 2004
Posts: 35

Rep: Reputation: 15
Using DNS (BIND)


I am trying to setup a DHCP and DNS server on the same computer (10.1.1.1) using FC6. The domain name is "blackout.com." I currectly created the dhcpd.conf file. Which is here.

Code:
ddns-updates on;
ddns-update-style ad-hoc;

default-lease-time 600;
max-lease-time 7200;
# Configuration for an internal subnet.
subnet 10.1.1.0 netmask 255.255.255.0 {
  range 10.1.1.2 10.1.1.5;
  option domain-name "blackout.com";
  option domain-name-servers 10.1.1.1;
  option routers 10.1.1.1;
  option broadcast-address 10.1.1.255;
  default-lease-time 600;
  max-lease-time 7200;
}
The client machines get the right IPs and their /etc/resolv.conf file indicates to look at nameserver 10.1.1.1.

My problem is with the DNS i believe. Even the server doesn't look at itself. I edited the resolv.conf file to indicate to look at itself but still nothing. Below is my named.conf file and my frwd and rev lookup files.

Code:
zone "blackout.com" {
        type master;
        allow-query { 10.1.1.0/24; };
        file "/var/named/blackout.com.zone";
};

zone "1.1.10.in-addr.arpa" {
        type master;
        file "/var/named/blackout.com.rev";
};
Code:
$TTL 3D
@       IN      SOA     ns1.blackout.com. hostmaster.blackout.com. (
                       200211152       ; serial#
                       3600            ; refresh, seconds
                       3600            ; retry, seconds
                       3600            ; expire, seconds
                       3600            ; minimum, seconds
                )

        IN       NS      ns1.blackout.com. 
blackout.com.    MX      10 mail         
  
localhost       IN       A       127.0.0.1
ns1             IN       A       10.1.1.1 
mail            IN       CNAME   ns1
Code:
$TTL 3D
@       IN        SOA        ns1.blackout.com.  mymail.blackout.com. (
                            200303301          ; serial number
                            8H                 ; refresh, seconds
                            2H                 ; retry, seconds
                            4W                 ; expire, seconds
                            1D )               ; minimum, seconds


1                       IN      PTR     ns1.blackout.com.
I figure i'd put everything here. When i type service named start things are OK but any queries to the DNS don't work. Any ideas would greatly be appreciated.

Forgot to mention im using VMWARE but i don't think that should matter. There is no other DHCP server on the network

Last edited by Blackout_08; 07-27-2007 at 11:40 AM.
 
Old 07-27-2007, 12:17 PM   #2
The_Dude
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by Blackout_08
I figure i'd put everything here. When i type service named start things are OK but any queries to the DNS don't work. Any ideas would greatly be appreciated.

Forgot to mention im using VMWARE but i don't think that should matter. There is no other DHCP server on the network
On the name server, your /etc/resolv.conf should read

search mydomain.com
nameserver 127.0.0.1

Try that and see how it goes.
 
  


Reply



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
Bind/DNS? wh33t Linux - Networking 4 06-02-2007 11:27 AM
Bind DNS WyRm Linux - Server 1 01-23-2007 06:14 AM
LXer: DNS: The Bind Leading the Bind LXer Syndicated Linux News 0 06-15-2006 10:33 PM
DNS and Bind pharpe Linux - Networking 3 01-15-2003 02:54 PM
DNS and BIND buttnutt Linux - Networking 5 06-08-2002 06:02 PM

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

All times are GMT -5. The time now is 07:12 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