Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatic DNS registration/discovery.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 995
Location: Quebec, Canada

PostPosted: Thu May 12, 2005 7:01 pm    Post subject: Automatic DNS registration/discovery. Reply with quote

I'm currently working on building my home network.

I want to use mostly dynamic IPs from my DHCP server, but I would like all my machines to register on the DNS server when boot up.

Some idea of my network topo

Code:

Yosho = 192.168.0.1  (This is my fixed gateway and router to the internet. It as my firewall on it)
Mioshi = 192.168.0.5  (This is my DHCP and DNS server among other things. )
Washu = 192.168.0.2 (this is my HTTP web server and may eventualy be turned into the DHCP and DNS server as I turn load up on mioshi)



Code:

Tenchi = this is my wireless laptop
Ryoko = This is my desktop
Sasami = This is another PC on the network
x-box =  my xbox


I would like the 3 PCs to get IPs dynamicaly from the DHCP but for the name to always point to the right computer. So if I do ping ryoko it will point to the right IP address. They use a mix of OS (linux and windows mostly)

I was wondering if anyone could point me to the right direction. I installed djbdns but am not sure where to go from there
_________________
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu May 12, 2005 8:43 pm    Post subject: Reply with quote

Unless djbdns has been heavily patched recently I don't believe it supports dynamic DNS of any sort. You'll have to go with Bind to get that functionality. I see some Perl scripts that add some of the functionality... but it all looks a bit goofy.

However if you just want this to work for a few machines I'd go with static entries in your DHCP config. Setup static entries for your servers based off their MAC address. Use IP's that aren't going to by in your regular DHCP range. The servers still get their IP by DHCP, but it's always the same IP due to the static entry so you can hard code it into DNS. Then set a normal DHCP range for unknown MAC addresses from .50 on up. That way people can bring their laptops over and have no issues.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 995
Location: Quebec, Canada

PostPosted: Thu May 12, 2005 9:20 pm    Post subject: Reply with quote

The solution I have right now is to have static entries in DHCP and hosts file, but I'd like something more professional.

The reason behind it is more educational then practical. My network is plenty small to be managed on a "per machine" basis, but I want to learn how to get it to do that.

Guess I have to learn BIND then.
_________________
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu May 12, 2005 9:45 pm    Post subject: Reply with quote

Maybe dnsmasq is what you want and enough for what you need
Quote:
Dnsmasq accepts DNS queries and either answers them from a small,
local, cache or forwards them to a real, recursive, DNS server. It
loads the contents of /etc/hosts so that local hostnames which do not
appear in the global DNS can be resolved and also answers DNS queries
for DHCP configured hosts.

The dnsmasq DHCP server supports static address assignments, multiple
networks, DHCP-relay and RFC3011 subnet specifiers. It automatically
sends a sensible default set of DHCP options, and can be configured to
send any desired set of DHCP options. It also supports BOOTP.

_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum