Boa Noite,
amigos do VIVAOLINUX, preciso de uma ajudinha com algo que para muitos que tem conhecimento teórico e pratico certamente acharam muito fácil de resolver, quero deixar as configurações abaixo:
permanentes dentro do "RESOLV.CONF", pois sempre que reinicio o servidor ele se modifica e gostaria que eles fiquem imutáveis e permanentes quando o Servidor fosse reiniciado.
Obs: sobre os comandos do chattr em algumas versos de SO Linux não e mais possível fazer a alteração com estes comandos infelizmente pelo que andei lendo.
* Travando
# chattr +i /etc/resolv.conf
* Destravando
# chattr -i /etc/resolv.conf
OBTIGADO FRIENDS
5. Re: RESOLV.CONF - PERMANENTE [RESOLVIDO]
removidousa Nenhuma
Post recolhido
Enviado em 18/02/2013 - 20:18h
Qual versão de S.O brother? Em todos esses abaixo ele se tornou imutável.
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4
# rm -rf resolv.conf
rm: não foi possível remover “resolv.conf”: Operação não permitida
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
# NETCONFIG_DNS_STATIC_SEARCHLIST
# NETCONFIG_DNS_STATIC_SERVERS
# NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
# NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
nameserver 8.8.8.8
nameserver 8.8.4.4
# rm -rf resolv.conf
rm: não foi possível remover "resolv.conf": Operação não permitida
Usamos cookies essenciais para manter o site funcionando e Google Analytics para métricas de audiência. Cookies de anúncios só serão carregados se você permitir.