I have a server setup with DHCP and DNS. DHCP is working and I can see the ip addresses, hardware ethernet, and client-hostname in /var/lib/dhcp/db/dhcp.leases. DNS forwarding seems to be working as I can set up the name servers as my server in Yast, Network devices, Network Card and still get to the internet from both the server and client, but DNS is not working for the network. Question is, how does DNS get the local network ip addresses and host names from the DHCP, or does it? Art
Art Fore wrote:
I have a server setup with DHCP and DNS. DHCP is working and I can see the ip addresses, hardware ethernet, and client-hostname in /var/lib/dhcp/db/dhcp.leases.
DNS forwarding seems to be working as I can set up the name servers as my server in Yast, Network devices, Network Card and still get to the internet from both the server and client, but DNS is not working for the network.
Question is, how does DNS get the local network ip addresses and host names from the DHCP, or does it?
Art
May I recommend dnsmasq? I set this up on my local network (on the firewall/router) and it has been rock solid. It is an integrated dns/dhcp server. It uses the /etc/hosts, /etc/resolv.conf, and other files on the server you install it on as seeds for dhcp requests. Therefore, if you install it on your firewall/router, and your firewall is set for dhcp from your ISP (probably true for > 90% of home users), these /etc/resolv.conf contains your ISP's DNS. Placing entries in /etc/hosts, results in static entries in your local dns domain. DHCP addresses are also placed in your local dns domain. All in all, a very nice package, and is available under YAST. Mitch Thompson RHCE
On Monday 17 October 2005 01:37 am, Art Fore wrote:
Question is, how does DNS get the local network ip addresses and host names from the DHCP, or does it?
I'm no expert in DHCP (avoid it at all costs) but in my view, it doesn't get the hostnames vs ip addresses which is one big drawback to DHCP. I may be wrong on this. The only solution is to hand out DHCP addresses based on MAC addresses so the same machine gets the same IP address each time. There may be other ways to accomplish this. But if you're going to do that, why bother with DHCP in the first place?
Bruce Marshall wrote:
On Monday 17 October 2005 01:37 am, Art Fore wrote:
Question is, how does DNS get the local network ip addresses and host names from the DHCP, or does it?
I'm no expert in DHCP (avoid it at all costs) but in my view, it doesn't get the hostnames vs ip addresses which is one big drawback to DHCP.
I may be wrong on this. The only solution is to hand out DHCP addresses based on MAC addresses so the same machine gets the same IP address each time. There may be other ways to accomplish this.
There are some DNS servers, that work with DHCP servers to maintain host names. IIRC, that was avaiable in OS/2 Warp Server almost 10 years ago.
On Mon, 2005-10-17 at 09:41 -0400, James Knott wrote:
Bruce Marshall wrote:
On Monday 17 October 2005 01:37 am, Art Fore wrote:
Question is, how does DNS get the local network ip addresses and host names from the DHCP, or does it?
I'm no expert in DHCP (avoid it at all costs) but in my view, it doesn't get the hostnames vs ip addresses which is one big drawback to DHCP.
I may be wrong on this. The only solution is to hand out DHCP addresses based on MAC addresses so the same machine gets the same IP address each time. There may be other ways to accomplish this.
There are some DNS servers, that work with DHCP servers to maintain host names. IIRC, that was avaiable in OS/2 Warp Server almost 10 years ago.
Have a look at the dynamic dns packages. There are docs that cover using DHCP win dyn-dns to update dns when dhcp addresses are handed out. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
Bruce Marshall wrote:
But if you're going to do that, why bother with DHCP in the first place?
Because that's how you secure the corporate network. Customers of mine have presentation rooms and everyday some group of either customers or suppliers come there. There is always somebody with a laptop that want to connect so they can check their email [I have caught one downloading porno]... 1. All known PCs/laptops with a known MAC will be on the 172.18.x.x network. 2. All unknown PCs will be on 10.1.x.x, they can only access the internet and not any of the corporate resources. They cannot spread viruses, worms or cause other damages... 3. Placing the conference room on a separate VLAN is not an option because if the regular salesman with known laptop plugs in he must have access to the network resources.
----- Original Message -----
From: "Art Fore"
I have a server setup with DHCP and DNS. DHCP is working and I can see the ip addresses, hardware ethernet, and client-hostname in /var/lib/dhcp/db/dhcp.leases.
DNS forwarding seems to be working as I can set up the name servers as my server in Yast, Network devices, Network Card and still get to the internet from both the server and client, but DNS is not working for the network.
Question is, how does DNS get the local network ip addresses and host names from the DHCP, or does it?
Art
Art, Configure DHCP to dynamically update your DNS. See: http://ops.ietf.org/dns/dynupd/secure-ddns-howto.html the Bind 9 Admin Manual, http://www.bind9.net/manuals Also http://www.tldp.org/HOWTO/DNS-HOWTO.html -- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com --
Thanks for the info. I also found on the Suse 10.0 installation /usr/share/doc/packages/dhcp-server/DDNS-howto.txt The advantage to this one is the update occurs from the server instead of the client. Will try getting things to going again this weekend when I am home again. Art david rankin wrote:
----- Original Message ----- From: "Art Fore"
To: Sent: Monday, October 17, 2005 12:37 AM Subject: [SLE] DHCP-DNS question I have a server setup with DHCP and DNS. DHCP is working and I can see the ip addresses, hardware ethernet, and client-hostname in /var/lib/dhcp/db/dhcp.leases.
DNS forwarding seems to be working as I can set up the name servers as my server in Yast, Network devices, Network Card and still get to the internet from both the server and client, but DNS is not working for the network.
Question is, how does DNS get the local network ip addresses and host names from the DHCP, or does it?
Art
Art,
Configure DHCP to dynamically update your DNS. See:
http://ops.ietf.org/dns/dynupd/secure-ddns-howto.html
the Bind 9 Admin Manual,
Also
http://www.tldp.org/HOWTO/DNS-HOWTO.html
-- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com --
participants (7)
-
Art Fore
-
Bruce Marshall
-
david rankin
-
James Knott
-
Ken Schneider
-
Mitch Thompson
-
Syv Ritch