named.conf has addtional settings, including the line...
include "/etc/bind/named.conf.loca
As a sidenote, this is a continuation of http://www.experts-exchang
Main Topics
Browse All TopicsI've set up a local DNS/DHCP on debian but my clients are not getting their name servers set through DHCP.
/etc/bind/zones/rev.1.168.
$TTL 10800
@ IN SOA staging.home. me@gmail.com. (
00000002 ; serial
7200 ; refresh
7200 ; retry
1814400 ; expire
10800 ; ttl
)
@ NS staging.
6 IN PTR staging.home.
/etc/bind/zones/home.db
$TTL 10800
@ IN SOA staging.home. me@gmail.com. (
00000002 ; serial
7200 ; refresh
7200 ; retry
1814400 ; expiry
10800 ; ttl
)
@ NS staging
staging A 192.168.1.6
*.staging A 192.168.1.6
/etc/bind/named.conf.local
zone "home" {
type master;
file "/etc/bind/zones/home.db";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.1.168
};
/etc/resolv.conf:
search home
nameserver 192.168.1.6
># nslookup
Server: 192.168.1.6
Address: 192.168.1.6#53
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
named.conf has addtional settings, including the line...
include "/etc/bind/named.conf.loca
As a sidenote, this is a continuation of http://www.experts-exchang
Please modify all your zoen files as follows:
/etc/bind/zones/rev.1.168.
$TTL 10800
@ IN SOA staging.home. me@gmail.com. (
2009090701 ; serial
7200 ; refresh
7200 ; retry
1814400 ; expire
10800 ; ttl
)
IN NS staging.home. ; Important to finish with dot toherwise will be completed
; by "@" = rev.1.168.192.in-addr.arpa
; if left as you did "staging." it would search for a TLD called
; staging not gonna be added with .local
6 IN PTR staging.home.
/etc/bind/zones/home.db
$TTL 10800
@ IN SOA staging.home. me@gmail.com. (
2009090701 ; serial
7200 ; refresh
7200 ; retry
1814400 ; expiry
10800 ; ttl
)
IN NS staging
staging IN A 192.168.1.6
* IN A 192.168.1.6 ; it is enough to put "*" here en anything you add here
; including any tirtiary doma will be replied with the
; address
/etc/bind/named.conf.local
zone "home" {
type master;
file "/etc/bind/zones/home.db";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.1.168
};
/etc/resolv.conf:
search home
nameserver 192.168.1.6
Then edit your /etc/dhcpd.conf file and make sure that your zone includes:
option domain-name-servers 192.168.1.6;
in the configuration..
Your /etc/dhcpd.conf should be similar to the snippet below. Here I am assuming that your default gateway is 192.168.1.1. The use of dynamic-bootp flag is optional and it it exists it would mean that the addresses will be assigned for both dhcp and bootp requests (of course bootp will require additional configuration f you need it)
For more information on DNS configuration see these RFC documents:
RFC 1912 http://www.faqs.org/rfcs/r
RFC 2308 http://www.faqs.org/rfcs/r
I've finally solved this... final config files:
/etc/bind/zones/home.db:
$TTL 10800
home. IN SOA staging.home. me@gmail.com. (
20090802 ; serial
7200 ; refresh
7200 ; retry
1814400 ; expiry
10800 ; ttl
)
@ NS staging
staging A 192.168.1.6
*.staging A 192.168.1.6
/etc/bind/zones/rev.1.168.
$TTL 10800
@ IN SOA staging.home. me.gmail.com. (
00000002 ; serial
7200 ; refresh
7200 ; retry
1814400 ; expire
10800 ; ttl
)
@ NS staging.home.
6 IN PTR staging.home.
/etc/dhcp3/dhcpd.conf:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.15 192.168.1.254;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name "home";
option domain-name-servers 192.168.1.6;
option broadcast-address 192.168.1.255;
default-lease-time 21600;
max-lease-time 43200;
}
apache.conf (end):
<VirtualHost *:80>
DocumentRoot /var/www/
ServerName staging
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/website1/webroot/
ServerName website1.staging
ServerAlias website1.staging.home
</VirtualHost>
------
now http://website.staging and http://website1.staging.ho
http://staging and http://staging.home both point to the apache doc root on staging machine. And this all happens for any dhcp client.
option domain-name "home";
in /etc/dhcp3/dhcpd.conf was key to getting clients to resolve the address shortcuts (http://staging, instead of http://staging.home) that put...
DNS Suffix Search List. . . . . . : home
on windows (C:\>ipconfig /all) and set "Search Domains" to "home" on OSX.
The zone file changes you suggested didn't work, they actually stopped the DNS from resolving any internal names. Awarding answer to solution :)
Business Accounts
Answer for Membership
by: NetExpert-WarszawaPosted on 2009-09-06 at 03:55:27ID: 25269412
mv /etc/bind/named.conf.local /etc/bind/named.conf