Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 15
  1. #1
    Utente di HTML.it L'avatar di Fabiuz
    Registrato dal
    Nov 2004
    Messaggi
    892

    DNS che cambiano da soli!!!

    Ciao a tutti!
    Ho un problema che non riesco a risolvere...:

    Allora, premetto che utilizzo un modem D-link 300T ADSL
    E' da un pò di tempo che i DNS di nel file resolv.conf cambiano da soli
    e dai canonici 212.216.112.112 e 212.216.172.62 diventano uno solo
    che è il 217.141.109.143 ....

    Ecco, sono davvero stanco di cambiarli ogni volta a mano !!
    Come posso fare per risolvere questo problema??
    Come mai fino ad un mese fa, questo non avveniva!!

    Grazie mille a tutti!
    Debian Sarge 3.01a
    Slackware 10.2

  2. #2
    usi il dhcp?
    http://www.gentoo.org/images/powered-by-gentoo.jpg

    {rocksteady@bboy}[rocksteady]*/usr/src/linux*$

  3. #3
    Utente di HTML.it L'avatar di Fabiuz
    Registrato dal
    Nov 2004
    Messaggi
    892
    il DHCP interno al modem intendi??
    si!
    Debian Sarge 3.01a
    Slackware 10.2

  4. #4
    ok fai queste modifiche al file /etc/conf.d/net

    codice:
    iface_eth0="dhcp"
    dhcpcd_eth0="-R"
    #dhcpcd_eth0="..."
    http://www.gentoo.org/images/powered-by-gentoo.jpg

    {rocksteady@bboy}[rocksteady]*/usr/src/linux*$

  5. #5
    Utente di HTML.it L'avatar di Fabiuz
    Registrato dal
    Nov 2004
    Messaggi
    892
    ma io non ho quel file!
    al massimo ho rc.d/rc.inet1.conf (credo che intendessi questo)???

    Debian Sarge 3.01a
    Slackware 10.2

  6. #6
    non sò che distro usi
    io su gentoo ho questo file

    codice:
    [rocksteady@bboy] [pts/1] [etc] *22:40:34* $ cat /etc/conf.d/net 
    # /etc/conf.d/net:
    # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
    
    # Global config file for net.* rc-scripts
    
    # This is basically the ifconfig argument without the ifconfig $iface
    #
    iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
    #iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
    
    # For DHCP set iface_eth? to "dhcp"
    # For passing options to dhcpcd use dhcpcd_eth?
    #
    iface_eth0="dhcp"
    dhcpcd_eth0="-R"
    #dhcpcd_eth0="..."
    
    # For adding aliases to a interface
    #
    #alias_eth0="192.168.0.3 192.168.0.4"
    
    # NB:  The next is only used for aliases.
    #
    # To add a custom netmask/broadcast address to created aliases,
    # uncomment and change accordingly.  Leave commented to assign
    # defaults for that interface.
    #
    #broadcast_eth0="192.168.0.255 192.168.0.255"
    #netmask_eth0="255.255.255.0 255.255.255.0"
    
    
    # For setting the default gateway
    #
    #gateway="eth0/192.168.0.1"
    http://www.gentoo.org/images/powered-by-gentoo.jpg

    {rocksteady@bboy}[rocksteady]*/usr/src/linux*$

  7. #7
    Utente di HTML.it L'avatar di Fabiuz
    Registrato dal
    Nov 2004
    Messaggi
    892
    io uso la slackware
    !!!!!!!!!!!
    Debian Sarge 3.01a
    Slackware 10.2

  8. #8
    non saprei quale sia il file su slack mi spiace
    http://www.gentoo.org/images/powered-by-gentoo.jpg

    {rocksteady@bboy}[rocksteady]*/usr/src/linux*$

  9. #9
    Io ho avuto un problema simile al tuo, sul forum di Ubuntu (io uso questa distro), ho trovato questa dritta, da root digita ifdown eth0 , poi cambi il resolv.conf e metti i tuoi DNS, la discussione sul forum Ubuntu la trovi QUI dove mi sembra ci siano altre dritte, ma che riguardano Ubuntu, forse però una di questa può andare bene anche a te

  10. #10
    Utente di HTML.it L'avatar di cacao74
    Registrato dal
    Jan 2005
    Messaggi
    2,570
    Originariamente inviato da Fabiuz
    ma io non ho quel file!
    al massimo ho rc.d/rc.inet1.conf (credo che intendessi questo)???

    Hai sopratutto un file chiamato /etc/rc.d/rc.inet1.
    Modifica la parte in cui viene utilizzato il client DHCP aggiungendo l'opzione che ti hanno suggerito per evitare che il file resolv.conf venga sovrascritto (man dhcpcd).
    Estratto del file citato:
    codice:
    ...
    eth_up() {
    ...
     if [ "${USE_DHCP[$1]}" = "yes" ]; then # use DHCP to bring interface up
            if [ ! "${DHCP_HOSTNAME[$1]}" = "" ]; then
              echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -t 10 -R -h ${DHCP_HOSTNAME[$1]} eth${1}" | $LOGGER
              /sbin/dhcpcd -d -t 10 -R -h ${DHCP_HOSTNAME[$1]} eth${1}
            else
              echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -t 10 -R eth${1}" | $LOGGER
              /sbin/dhcpcd -d -t 10 -R eth${1}
            fi
    ...
    Le parti in rosso sono quelle da aggiungere.
    In ogni caso, un backup di questo file prima di fare qualunqie modifica, male non fa.

    ciao
    slack? smack!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.