Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCPD CHROOT
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
speziale.ettore
n00b
n00b


Joined: 18 Apr 2004
Posts: 9

PostPosted: Mon Apr 19, 2004 1:56 pm    Post subject: DHCPD CHROOT Reply with quote

Salve,

qualcuno ha provato a far girare ISC DHCPD in chroot utilizzando nelle direttive del file di configurazione nomi di host al posto di indirizzi ip?
Io lo fatto e sembra che dhcpd non riesca a contattare il server DNS locale.
Lo script di installazione non copia nessun file di configurazione nella directory ${chroot}/etc tranne dhcp/dhcpd.conf.
Ho provato a copiarvi resolv.conf, nsswitch.conf , hosts, services e protocols, ma dhcpd continua a non riuscire a contattare il server DNS.

Esempio:
Nel mio file ho una riga
option name-servers ns.miodomionio.lan;

e nel file di log, quando dhcpd assegna un indirizzo ad un host leggo:

ns.miodominio.lan: host unknown
Back to top
View user's profile Send private message
BlueRaven
Apprentice
Apprentice


Joined: 12 May 2003
Posts: 254

PostPosted: Tue Apr 20, 2004 8:37 pm    Post subject: Re: DHCPD CHROOT Reply with quote

speziale.ettore wrote:
qualcuno ha provato a far girare ISC DHCPD in chroot utilizzando nelle direttive del file di configurazione nomi di host al posto di indirizzi ip?


So che non è la risposta al tuo problema, ma se può servirti utilizzando dhcpd non in chroot e i nomi di host nelle direttive funziona perfettamente.
Back to top
View user's profile Send private message
speziale.ettore
n00b
n00b


Joined: 18 Apr 2004
Posts: 9

PostPosted: Fri Apr 23, 2004 8:21 pm    Post subject: DHCPD [RISOLTO] Reply with quote

dhcpd necessita per risolvere i nomi in indirizzi delle seguenti librerie, da copiare in ${CHROOT}/lib

libnss_dns-2.3.2.so
libnss_dns.so.2 [LINK a libnss_dns-2.3.2.so]
libresolv-2.3.2.so
libresolv.so.2 [LINK a libresolv-2.3.2.so]

Per la configurazione del Name Service Switch va bene quella di default (man nsswitch.conf) e quindi il file di configurazione ${CHROOT}/etc/nsswitch.conf può essere omesso.
Bisogna necessariamente creare ${CHROOT}/etc/resolv.conf in cui si indica il nameserver della rete locale.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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