LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-08-2004, 04:44 PM   #1
rubik-wuerfel
LQ Newbie
 
Registered: May 2004
Distribution: SuSE, gentoo
Posts: 3

Rep: Reputation: 0
Question How to update dns with dhcpd?


Hello all!
I have only this one problem left with configuring a router at my girlfriend's. Everything works fine, I have a running SuSE 9.0, a running pppoe-connection (with my provider's DNS servers submitted), dhcpd and firewall set up.
The clients can connect to the router (ssh and everything), and both (clients and router) can connect to the net, but the clients can do so only dierctly over the IP addresses. The router gets the dns addresses from the provider via pppoe/dhcp (they are correctly written into /etc/resolv.conf) but somehow won't pass them by dhcp to the clients.
Is there a way to tell the dhcpd not to tell the clients a static dns address but rather take it from somewhere? I really don't like the idea of changing them by hand each time the isp changes them (ok, I know, this won't happen too often, but still...)

Thanks in advance, Daniel
 
Old 05-09-2004, 02:30 AM   #2
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
You should look to see if you router provides some kind of dns resolver for you. Alot of the newer routers will act as dns resolvers so all the clients have to do is query the router for dns resolution.
 
Old 05-09-2004, 04:26 AM   #3
rubik-wuerfel
LQ Newbie
 
Registered: May 2004
Distribution: SuSE, gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
OK, I think I havent expressed my problem well enough. I've set up an old Pentium PC as router, and I'm wondering if I can configure it to forward the DNS server address it gets from the ISP to the other clients by dhcp. Everything else in the running dhcpd works well so far.
The /etc/resolv.conf on the router is modified correctly by the pppd, my dhcpd.conf is as follows:


authoritative;
ddns-update-style none;
ddns-updates off;
#update-static-leases on;
default-lease-time 600;
log-facility local7;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option ip-forwarding on;

subnet 10.10.42.0 netmask 255.255.255.0 {
option domain-name k1;
option routers 10.10.42.10;
option domain-name-servers 217.237.149.161;
option broadcast-address 10.10.42.255;
}

# client host
host libertad {
hardware ethernet 00:50:22:40:09:57;
fixed-address 10.10.42.1;
}
 
Old 05-09-2004, 05:53 AM   #4
kinasz
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: FreeBSD, Suse
Posts: 103

Rep: Reputation: 15
I may have missed your meaning and if I have disregard this post.

Would it be more effective to set the router up to use nat for forwarding on the dns query. If you forward all tcp requests on port 53 to your dhcp assigned dns.

The problem you will have with the method that you are proposing is that all of your clients will have internal addresses. If they are not nat'ed by the router you won't get any packet back. So the above method would be easiest.

Sorry I cant give you the specific rules for your firewall but hopefully this will help.

Cheers

Mitch
 
Old 05-09-2004, 07:14 AM   #5
rubik-wuerfel
LQ Newbie
 
Registered: May 2004
Distribution: SuSE, gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by kinasz
I may have missed your meaning and if I have disregard this post.

Would it be more effective to set the router up to use nat for forwarding on the dns query. If you forward all tcp requests on port 53 to your dhcp assigned dns.
Well, thats what I'm doing right now, I'm sending the clients the dns address by dhcp, and they can connect (routed through 53, firewall is ok) to the dns server alright. But still, when the dns server changes (as is think it might be one of my provider, so it is'n _that_ static), i will have to reconfigure the dhcpd by hand again... even though it migt be a few years till then
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd: How to automaticly get it to use dns servers from eth0? Sarno Linux - Networking 0 01-10-2005 08:57 PM
Howto update firewall on dhcpd lease Noerr Linux - Networking 3 06-09-2004 10:36 PM
How DNS can be configured , to update records dynamically; when using DHCPd?????????? mwj Linux - Software 3 03-20-2004 11:01 AM
Using DNS ips I just go from dhcpcd in dhcpd? 95se Linux - Networking 2 01-23-2004 01:41 PM
Serving DNS IP to Macintosh clients via DHCPD Darieus Linux - Networking 1 08-08-2003 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration