LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Using DNS (BIND) (https://www.linuxquestions.org/questions/linux-networking-3/using-dns-bind-572767/)

Blackout_08 07-27-2007 11:37 AM

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

The_Dude 07-27-2007 12:17 PM

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.


All times are GMT -5. The time now is 05:38 PM.