[SLE] DHCP and name resolving
Hi! I have set up a DHCPD server on my local network and have found out that writing host names in /etc/hosts is really awkward, since dhcpd doesnt assign the same ip every time. I was wondering how to make host resolving work even if the ips and addresses aren't written in /etc/hosts. Specificaly I have an host connected to my dhcp server which is assigned ip 192.168.1.3 and host name of spiritus.neonatus.net. How can I make the server resolv the ip to the hostname (let's say if I do a ping spiritus.neonatus.net (where neonatus.net is my domain name) I would get normal ping reply)? THX in advance! Bo¹tjan -- Bo¹tjan Müller [NEONATUS], NEONATUS@bigfoot.com, http://surf.to/NEONATUS RSA id: 0x90178DBD, ICQ #:7506644, PGP key: finger neonatus@gimp.thz.net GEEK CODE = PGP key Registered Linux User #87774, Powered by SuSE Linux 6.2 Succumb to natural tendencies. Be hateful and boring. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Bostjan Muller wrote:
Hi!
I have set up a DHCPD server on my local network and have found out that writing host names in /etc/hosts is really awkward, since dhcpd doesnt assign the same ip every time. I was wondering how to make host resolving work even if the ips and addresses aren't written in /etc/hosts. Specificaly I have an host connected to my dhcp server which is assigned ip 192.168.1.3 and host name of spiritus.neonatus.net. How can I make the server resolv the ip to the hostname (let's say if I do a ping spiritus.neonatus.net (where neonatus.net is my domain name) I would get normal ping reply)?
I think the best way would be to set up a caching DNS server on the DHCP server. Then whenever DHCP gives out an IP, it should update the local DNS. Don't ask me how to do this though, as I haven't found the time to do it myself yet, but as far as I know, that is how you would go about it. Hope that helps, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
* On 24-02-00 at 11:01 Chris Reeves (chris.reeves@iname.com) wrote: +----Here quoted text begins----+
I think the best way would be to set up a caching DNS server on the DHCP server. Then whenever DHCP gives out an IP, it should update the local DNS. Don't ask me how to do this though, as I haven't found the time to do it myself yet, but as far as I know, that is how you would go about it.
Hope that helps, Chris +----and here the quote ends----+ It sure sound's right, but I also haven't got a clue how to do that. Can someone help me with it please?
THX in advance! Bo¹tjan -- Bo¹tjan Müller [NEONATUS], NEONATUS@bigfoot.com, http://surf.to/NEONATUS RSA id: 0x90178DBD, ICQ #:7506644, PGP key: finger neonatus@gimp.thz.net GEEK CODE = PGP key Registered Linux User #87774, Powered by SuSE Linux 6.2 May a Misguided Platypus lay its Eggs in your Jockey Shorts -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Bostjan Muller wrote:
* On 24-02-00 at 11:01 Chris Reeves (chris.reeves@iname.com) wrote: +----Here quoted text begins----+
I think the best way would be to set up a caching DNS server on the DHCP server. Then whenever DHCP gives out an IP, it should update the local DNS. Don't ask me how to do this though, as I haven't found the time to do it myself yet, but as far as I know, that is how you would go about it.
Hope that helps, Chris +----and here the quote ends----+ It sure sound's right, but I also haven't got a clue how to do that. Can someone help me with it please?
Although I said I didn't know how, I have just remembered that I've got a link to a page that explains just how to do this: http://www.linuxgazette.com/issue45/tag/11.html Hope that helps, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
* On 24-02-00 at 15:24 Chris Reeves (chris.reeves@iname.com) wrote: +----Here quoted text begins----+
Although I said I didn't know how, I have just remembered that I've got a link to a page that explains just how to do this: http://www.linuxgazette.com/issue45/tag/11.html
[...] +----and here the quote ends----+ I have a DNS daemon on this machine - the one running DHCP, but what I don't know how to do is to assign the same *host name* to the mchine connecting. The machine connects with send host-name "spiritus.neonatus.net" than dhcpd on server does this: Feb 24 16:52:31 neonatus dhcpd: DHCPDISCOVER from 00:a0:0c:14:0e:5e via eth0 Feb 24 16:52:32 neonatus dhcpd: DHCPOFFER on 192.168.1.3 to 00:a0:0c:14:0e:5e via eth0 Feb 24 16:52:35 neonatus dhcpd: DHCPREQUEST for 192.168.1.3 from 00:a0:0c:14:0e:5e via eth0 Feb 24 16:52:36 neonatus dhcpd: DHCPACK on 192.168.1.3 to 00:a0:0c:14:0e:5e via eth0 --> just a normal connection and ip assignment, but then I don't have that ip in my nameservers cache or /etc/hosts. I can assign a name to an ip, but the machine connecting to a server doesn't allways get the same ip - how can I change either: a) that connecting machine (host) would allways be assigned same ip or b) name resolving would be done dynamically instead of staticaly - if a host connects to a server with certain "send host-name" request it should be assigned an ip that is in /etc/hosts or nameservers database connected to that hostname. If anyone can help me fix this I would really apreciate it. Bo¹tjan -- Bo¹tjan Müller [NEONATUS], NEONATUS@bigfoot.com, http://surf.to/NEONATUS RSA id: 0x90178DBD, ICQ #:7506644, PGP key: finger neonatus@gimp.thz.net GEEK CODE = PGP key Registered Linux User #87774, Powered by SuSE Linux 6.2 Death is God's way of telling you not to be such a wise guy. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Bostjan Muller wrote:
* On 24-02-00 at 15:24 Chris Reeves (chris.reeves@iname.com) wrote: +----Here quoted text begins----+
Although I said I didn't know how, I have just remembered that I've got a link to a page that explains just how to do this: http://www.linuxgazette.com/issue45/tag/11.html
[...] +----and here the quote ends----+
I have a DNS daemon on this machine - the one running DHCP, but what I don't know how to do is to assign the same *host name* to the mchine connecting. The machine connects with send host-name "spiritus.neonatus.net" than dhcpd on server does this: Feb 24 16:52:31 neonatus dhcpd: DHCPDISCOVER from 00:a0:0c:14:0e:5e via eth0 Feb 24 16:52:32 neonatus dhcpd: DHCPOFFER on 192.168.1.3 to 00:a0:0c:14:0e:5e via eth0 Feb 24 16:52:35 neonatus dhcpd: DHCPREQUEST for 192.168.1.3 from 00:a0:0c:14:0e:5e via eth0 Feb 24 16:52:36 neonatus dhcpd: DHCPACK on 192.168.1.3 to 00:a0:0c:14:0e:5e via eth0 --> just a normal connection and ip assignment, but then I don't have that ip in my nameservers cache or /etc/hosts. I can assign a name to an ip, but the machine connecting to a server doesn't allways get the same ip - how can I change either: a) that connecting machine (host) would allways be assigned same ip or b) name resolving would be done dynamically instead of staticaly - if a host connects to a server with certain "send host-name" request it should be assigned an ip that is in /etc/hosts or nameservers database connected to that hostname.
I think a) would probably be the easiest option. 'man dhcpd.conf' has more info. Hope that helps again, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
chris.reeves@iname.com
-
neonatus@gimp.thz.net