How to configure DNS for a local LAN (at least I think I want DNS)
There is a LAN party that I help run and we are trying to figure out how to set up a DNS server to basically auto forward any webpage requests to our main server webpage. (if there is a different way to do this without setting up a DNS server I am all ears)
There is no internet connection at the place we LAN and there would only be 1 DNS server (most guides I have looked at have a primary and secondary). The main server all ready has a dhcp up and running, and apache. Thank for any help. |
http://www.linuxquestions.org/linux/..._Small_Subnets
www.bind9.net/manuals http://www.linuxhelp.net/guides/bind/ Those should be able to get you running |
Here are the files I have made and the last is the output of trying to do a nslookup.
There is something wrong but I don't know what it is or where it is. If anyone can point out any problems I would appreciate it. db.mtvlan Code:
$TTL 21600 Code:
@ IN SOA localhost. root.localhost. ( named.conf Code:
zone "mtvlan.com"{ Code:
penguin:/etc/bind# nslookup mtvlan.com |
You should not need these lines in your named.conf..
Code:
allow-update { any; }; Code:
1 IN PTR mtvlan.com. In you A record try to remove.. Code:
IN A 10.10.0.1 Code:
* IN A 10.10.0.1 |
ok this is how my stuff looks now
db.mtvlan Code:
$TTL 21600 Code:
$TTL 21600 named.conf.local Code:
zone "mtvlan.com"{ |
Did you restart named after you made the config changes?
|
yeah, I just killed it and restarted it.
|
Here I just slapped together a basic config that will work..
named.conf Code:
zone "." { db.root Code:
$TTL 3H The test... Code:
Pinky:/etc/bind# nslookup |
Thanks a ton. It works perfect.
|
All times are GMT -5. The time now is 06:28 AM. |