Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/dhcp/dhcpd.conf --> DNS
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Sun Mar 29, 2009 10:05 am    Post subject: /etc/dhcp/dhcpd.conf --> DNS Reply with quote

Hallo,

leider ist mein DHCP Server nicht gleichzeitig der DNS Server. Das solte eigentlich der Router sein (Wenn das geht). Wie kann ich dem dhcp das mit auf dem Weg geben? Also entweder, daß der Router die DNS Server Adressen kennt, oder ein paar DNS Serveradressen?

Oder muß ich auf dem DHCP Server noch einen DNS Server aufsetzen?

G. R.

Achso meine /etc/dhcp/dhcpd.conf

Code:

ddns-update-style interim;
not authoritative;

#option domain-name "shirwa.net";
#option domain-name-servers 208.67.222.222, 208.67.220.220;
option subnet-mask 255.255.255.0;
subnet 192.168.3.0 netmask 255.255.255.0 {
authoritative;
range 192.168.3.120 192.168.3.150;
option routers 192.168.3.1;
allow unknown-clients;
allow booting;
allow bootp;
next-server 192.168.3.2;
#filename "pxelinux.0";
#option option-150 "/boot/menu.lst";
#filename "boot/grub/pxegrub";
#filename "boot/grub/pxelinux.0";
filename "boot/pxelinux.0";

Back to top
View user's profile Send private message
Hollowman
Guru
Guru


Joined: 19 Apr 2007
Posts: 584

PostPosted: Sun Mar 29, 2009 10:38 am    Post subject: Reply with quote

Hi

Wie muss man das verstehen?

Du hast einen Router, an dem hängt ein Server der dhcp macht. Daran hängt dann dein normaler PC?

Wie sieht die /etc/resolv.conf vom Client aus?

Sebastian
Back to top
View user's profile Send private message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1754

PostPosted: Sun Mar 29, 2009 11:38 am    Post subject: Reply with quote

Hollowman wrote:
Hi

Wie muss man das verstehen?

Du hast einen Router, an dem hängt ein Server der dhcp macht. Daran hängt dann dein normaler PC?

Wie sieht die /etc/resolv.conf vom Client aus?

Sebastian


Ja, richtig. Da sind mehrere Diskless Clients, die vom Server gefüttert werden.

Die resolv.conf auf den Clients ist noch leer.

G. R.
Back to top
View user's profile Send private message
Hollowman
Guru
Guru


Joined: 19 Apr 2007
Posts: 584

PostPosted: Sun Mar 29, 2009 4:05 pm    Post subject: Reply with quote

Hi

Dann würde ich das so machen.

Der Server ist DHCP und DNS Server fürs lokale Netz. Anfragen für das Internet forwardet er an den Router oder löst sie selber auf.

Dazu würde ich dir dnsmasq oder bind auf dem Server empfehlen. Du kannst aber auch bei deinem dhcpd bleiben.

Wenn du deine Methode verfolgen willst, sollte das so aussehen:
Ich gehe davon aus das 192.168.3.1 der Server ist und 192.168.3.2 der Router?

ddns-update-style interim;
not authoritative;

#option domain-name "shirwa.net";
#option domain-name-servers 208.67.222.222, 208.67.220.220;
option subnet-mask 255.255.255.0;
subnet 192.168.3.0 netmask 255.255.255.0 {
authoritative;
range 192.168.3.120 192.168.3.150;
option routers 192.168.3.1;
option domain-name-servers 192.168.3.2;
allow unknown-clients;
allow booting;
allow bootp;
next-server 192.168.3.2;
#filename "pxelinux.0";
#option option-150 "/boot/menu.lst";
#filename "boot/grub/pxegrub";
#filename "boot/grub/pxelinux.0";
filename "boot/pxelinux.0";

Das Problem bei der Sache wird sein das du im Lokalen Netz keinen Namen auflösen kannst. ping Client01 geht nicht.

Mach lieber DHCP und DNS auf den Server und lass den alles auflösen und nimm den Router als Standartgateway. DNS Anfragen für Internetadressen vorwardest du direkt an den DNS deines ISPs.

Sebastian
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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