bind and DHCP - DDNS
Hi all,
OS:Centos 5.1 im trying to setup a DNS server with DHCP to give out the ip address, so that DNS server can serve the local LAN domain names but pass any exsternal requests out onto the net while caching them. i have DHCP setup which is giving out IPs and setting the DNS on machine but not inputting any DNNS info into the liease file. heres the config file Code:
# Code:
set ddns-rev-name = set ddns-txt = set ddns-fwd-name = so im not sure why not maybe someone can see why? in /var/log/messages i get Code:
Jun 14 13:12:04 pdc dhcpd: dhcpd startup succeeded my named.conf file is as follows Code:
acl trusted { Code:
include "/etc/rndc.key"; dpsmn.sch.uk.zone Code:
$ORIGIN . Code:
$TTL 86400 Robert |
iv added some zone sections into DHCP and now im getting some better resolts but not quite there
dhcp.conf now looks like this Code:
# Code:
in var/log/messages Jun 14 14:10:12 pdc dhcpd: DHCPREQUEST for 192.168.0.126 from 00:08:a1:8a:fd:ec (laptoprobb) via eth0 Jun 14 14:10:12 pdc dhcpd: DHCPACK on 192.168.0.126 to 00:08:a1:8a:fd:ec (laptoprobb) via eth0 and my dpsmn.sch.uk.zone file is being updated by DHCP and bind as i get Code:
$ORIGIN . as i can access google.com if i put the IP address in a browser from a client but it does not NSlookup resolve or ping google.com only if i use the IP address. but the DNS server (192.168.0.2) will look up google.com and ping it just fine windows tells me Code:
nslookup google.com Code:
# nslookup google.com |
When I did this, I had a problem with the reverse zone using the key properly.
I just ended up commenting out the key line and it worked. Give it a try, see what happens. |
hi ARC, thanks for the input, iv now got DHCP updating as it should now i need to get the DNS server to resolve domains for me.
did a bit more playing i now have DHCP updating the forward and reverse DNS fine now, i cant seem to get the DNS server to resolve out side domains to IPs if i do a nslookup www.google.com from dhcp client i get Code:
can't find server name for address 192.168.0.2: timed out Code:
nslookup www.google.com here are my final config files as they stand DHCPD.conf Code:
# named.caching-nameserver.conf Code:
// Code:
// named.rfc1912.zones: Code:
$ORIGIN . Code:
$ORIGIN . any one looking over this problem with above scripts are missing " on the keys, missing . with in the zone reverse file few minor tweaks on dhcp file almade allow client-update in dhcpd.conf. if any one can help me getting the clients to retrive domain info from the DNS this would be grate. thanks for any help robert |
Try uncommenting the forwarders line in the named.conf.
// forwarders {208.67.22.222; 208.67.220.220;}; to forwarders {208.67.22.222; 208.67.220.220;}; Your DNS server will not forward the DNS lookups with the line commented out. If not, in the dhcpd.conf file change: option domain-name-servers 192.168.0.2; to option domain-name-servers 192.168.0.2; 208.67.22.222; This will fail over the DNS request to your (I presume) ISP DNS server. The first is the "recommended" way. |
Hi there, thanks for the tip,
i uncommented the above all is now working from the looks of things reverse and forward zones are being updated by DHCP clients can now browse and nslookup exsternal domains (also internel) here is my final name.conf for any one intrested. also here is alink ifound with some good info on bind and dhcp bind http://www.linuxhomenetworking.com/w...onfiguring_DNS dhcp http://www.linuxhomenetworking.com/w...he_DHCP_Server Code:
// hope this helps any one out who runs into the same problem as i have if you do follow this make sure you have a RNDC.key file in etc setup and configured ;) thanks every one for your help, robert |
Quote:
|
sorry now browse yea what a typo sorry, all is working fine thanks,
|
All times are GMT -5. The time now is 08:24 PM. |