Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / DHCP and DNS Server in Linux

Author
Message
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Apr 2006 20:22
Has anyone here had any experience setting one of these up? I'm trying to do it on my internal LAN (mainly for the experience) and am having a few difficulties...

Basically, I have got DHCP working in that I can assign a static IP to a machine based on MAC address and I can set a domain suffix, however it doesn't seem to be assigning the hostname.

I'm using DHCP v3 and BIND v9. BIND is working (so it seems) as a caching DNS server. I have all the machines pointing at it and my PC's can do lookups on it. It seems to have made the internet quicker as now the machines dont have to keep looking at the NTL DNS servers, but can look at the internal cache first (<1ms lookup rather than the 10ms to the NTL Domain name servers). Thing is, I'd like to have an internal zone (eg, nicks.thompson.local or something) so I can host development websites on the webserver using VHOST's... But thats in the future - to start with, I'd like to have hostnames and DNS stuff working.

If anyone has any idea how to do this, please post back. I can put up my config files too if you need them. I've been googling for days and read through loads of tutorials on the debian website.

I'm running Fedora Core 4.

Cheers guys

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Apr 2006 21:29 Edited at: 9th Apr 2006 21:43
Hmm.. Any idea what this error means?


Does that mean that BIND isn'd doing the reverse lookups correctly? This is my reverse lookup zone file (/var/named/db.192.168.1.rev)...


EDIT:
If its any use, this is what ipconfig/all gives me from my windows machine...


I have no idea whatsoever why it thinks the DHCP server is localhost... Its picking up the details precisely like I am informing it to - but I STILL cant get the DNS to lookup properly :-(

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Apr 2006 22:06
Ah ha! Got it... There was a bug in the named.conf file, but it wasn't outrightly telling me when I applied changes by restarting the deamon. I had to tail the log file /var/log/messages and it told me there were missing semi-colons in the zone files.



Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 9th Apr 2006 22:08
Edit the post?

Theme park simulator wip

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 10th Apr 2006 01:20
I editing the middle one, but I only posted the others because they were an advancement on the problem. I appologise if this offended you in anyway. Its not like I bumped them for no reason like you just did hehe.

Unless anyone finds this thread of any use from a conversational point of view (or if I break DNS/DHCP again) I think this thread should live out the rest of its life off of page 1.

Login to post a reply

Server time is: 2024-11-16 21:49:15
Your offset time is: 2024-11-16 21:49:15