LINUX.ORG.RU

Ответ на: комментарий от zolden

/etc/dnsmasq.conf
/etc/netconfig.d/dns-dnsmasq
/etc/netconfig.d/dns-resolver
/etc/vpnc/vpnc-script
/etc/avahi/avahi-dnsconfd.action
/etc/avahi/avahi-daemon.conf
/etc/rc.d/boot.cleanup
/etc/rc.d/boot.d/K01boot.cleanup
/etc/rc.d/boot.d/S13boot.cleanup
/etc/resolv.conf.local
/etc/init.d/boot.cleanup
/etc/init.d/boot.d/K01boot.cleanup
/etc/init.d/boot.d/S13boot.cleanup
/etc/resolv.conf.netconfig
/etc/ppp/ip-down.local
/etc/ppp/ip-up.local
/etc/alternatives/jre_exports/jndi-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_exports/jndi-cos.jar
/etc/alternatives/jre_exports/jdbc-stdext-1.6.0.jar
/etc/alternatives/jre_exports/jndi-1.6.0.jar
/etc/alternatives/jre_exports/jndi.jar
/etc/alternatives/jre_exports/jndi-ldap-1.6.0.jar
/etc/alternatives/jre_exports/sasl-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_exports/jndi-rmi.jar
/etc/alternatives/jre_exports/jndi-cos-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_exports/jdbc-stdext-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_exports/jndi-ldap-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_exports/sasl.jar
/etc/alternatives/jre_exports/jndi-ldap.jar
/etc/alternatives/jre_exports/jndi-rmi-1.6.0.jar
/etc/alternatives/jre_exports/jaas-1.6.0.jar
/etc/alternatives/jre_exports/jndi-rmi-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_exports/jaas.jar
/etc/alternatives/jre_exports/jaas-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_exports/jdbc-stdext-3.0.jar
/etc/alternatives/jre_exports/jndi-cos-1.6.0.jar
/etc/alternatives/jre_exports/sasl-1.6.0.jar
/etc/alternatives/jre_exports/jdbc-stdext.jar
/etc/alternatives/jre_1.6.0_exports/jndi-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_1.6.0_exports/jndi-cos.jar
/etc/alternatives/jre_1.6.0_exports/jdbc-stdext-1.6.0.jar
/etc/alternatives/jre_1.6.0_exports/jndi-1.6.0.jar
/etc/alternatives/jre_1.6.0_exports/jndi.jar
/etc/alternatives/jre_1.6.0_exports/jndi-ldap-1.6.0.jar
/etc/alternatives/jre_1.6.0_exports/sasl-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_1.6.0_exports/jndi-rmi.jar
/etc/alternatives/jre_1.6.0_exports/jndi-cos-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_1.6.0_exports/jdbc-stdext-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_1.6.0_exports/jndi-ldap-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_1.6.0_exports/sasl.jar
/etc/alternatives/jre_1.6.0_exports/jndi-ldap.jar
/etc/alternatives/jre_1.6.0_exports/jndi-rmi-1.6.0.jar
/etc/alternatives/jre_1.6.0_exports/jaas-1.6.0.jar
/etc/alternatives/jre_1.6.0_exports/jndi-rmi-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_1.6.0_exports/jaas.jar
/etc/alternatives/jre_1.6.0_exports/jaas-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_1.6.0_exports/jdbc-stdext-3.0.jar
/etc/alternatives/jre_1.6.0_exports/jndi-cos-1.6.0.jar
/etc/alternatives/jre_1.6.0_exports/sasl-1.6.0.jar
/etc/alternatives/jre_1.6.0_exports/jdbc-stdext.jar
/etc/alternatives/jre_openjdk_exports/jndi-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_openjdk_exports/jndi-cos.jar
/etc/alternatives/jre_openjdk_exports/jdbc-stdext-1.6.0.jar
/etc/alternatives/jre_openjdk_exports/jndi-1.6.0.jar
/etc/alternatives/jre_openjdk_exports/jndi.jar
/etc/alternatives/jre_openjdk_exports/jndi-ldap-1.6.0.jar
/etc/alternatives/jre_openjdk_exports/sasl-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_openjdk_exports/jndi-rmi.jar
/etc/alternatives/jre_openjdk_exports/jndi-cos-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_openjdk_exports/jdbc-stdext-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_openjdk_exports/jndi-ldap-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_openjdk_exports/sasl.jar
/etc/alternatives/jre_openjdk_exports/jndi-ldap.jar
/etc/alternatives/jre_openjdk_exports/jndi-rmi-1.6.0.jar
/etc/alternatives/jre_openjdk_exports/jaas-1.6.0.jar
/etc/alternatives/jre_openjdk_exports/jndi-rmi-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_openjdk_exports/jaas.jar
/etc/alternatives/jre_openjdk_exports/jaas-1.6.0.0_b22.1.10.2.jar
/etc/alternatives/jre_openjdk_exports/jdbc-stdext-3.0.jar
/etc/alternatives/jre_openjdk_exports/jndi-cos-1.6.0.jar
/etc/alternatives/jre_openjdk_exports/sasl-1.6.0.jar
/etc/alternatives/jre_openjdk_exports/jdbc-stdext.jar
/etc/alternatives/jre_1.6.0/lib/rt.jar
/etc/alternatives/jre/lib/rt.jar
/etc/alternatives/jre_openjdk/lib/rt.jar
/etc/resolv.conf
/etc/apparmor/profiles/extras/sbin.dhcpcd
/etc/apparmor/severity.db
/etc/sysconfig/network/config
/etc/sysconfig/network/scripts/convert_to_netconfig_dns
/etc/apparmor.d/abstractions/nameservice
/home/a.s.poison/.mc/history

osa-1988
() автор топика

Интернет на машине есть? Через ppp? Если да - намек понятен?

Pinkbyte ★★★★★
()

Если dns-серверы не меняются, можно сделать его недоступным для записи

alix ★★★★
()
Ответ на: комментарий от osa-1988

У вас какой-то странный grep, либо, вы вместо того, чтобы скопировать команду перепечатали её руками и перепутали ключ. У вас на выходе должен был быть список строк (с именами файлов) где встречается (меняется) resolv.conf а не просто список файлов. Давайте поверим Pinkbyte и позырим на /etc/ppp/ip-down.local и /etc/ppp/ip-up.local

zolden ★★★★★
()
Ответ на: комментарий от zolden

Да, ошибся...
/etc/dnsmasq.conf:# somewhere other that /etc/resolv.conf
/etc/dnsmasq.conf:# /etc/resolv.conf
/etc/dnsmasq.conf:# If you don't want dnsmasq to read /etc/resolv.conf or any other
/etc/dnsmasq.conf:# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
/etc/netconfig.d/dns-dnsmasq: # resolv.conf supports up to 3 nameserver,
/etc/netconfig.d/dns-resolver:DESTFILE=«$r/etc/resolv.conf»
/etc/netconfig.d/dns-resolver:function write_resolv_conf()
/etc/netconfig.d/dns-resolver: debug «write_resolv_conf: '$1' '$2'»
/etc/netconfig.d/dns-resolver: # resolv.conf supports up to 6 domains
/etc/netconfig.d/dns-resolver: # resolv.conf supports up to 3 nameserver
/etc/netconfig.d/dns-resolver:write_resolv_conf «$DNS_SEARCHLIST_0 $DNS_SEARCHLIST_1 $DNS_SEARCHLIST_2» \
/etc/vpnc/vpnc-script:RESOLV_CONF_BACKUP=/var/run/vpnc/resolv.conf-backup
/etc/vpnc/vpnc-script:# =========== resolv.conf handling ====================================
/etc/vpnc/vpnc-script:# =========== resolv.conf handling for any OS =========================
/etc/vpnc/vpnc-script:   grep '^#@VPNC_GENERATED@' /etc/resolv.conf > /dev/null 2>&1 || cp — /etc/resolv.conf «$RESOLV_CONF_BACKUP»
/etc/vpnc/vpnc-script:   echo «$NEW_RESOLVCONF» > /etc/resolv.conf
/etc/vpnc/vpnc-script:            # is present, anything reading the /etc/resolv.conf file
/etc/vpnc/vpnc-script:   grep '^#@VPNC_GENERATED@' /etc/resolv.conf > /dev/null 2>&1 && cat «$RESOLV_CONF_BACKUP» > /etc/resolv.conf
/etc/vpnc/vpnc-script:# === resolv.conf handling via /sbin/modify_resolvconf (Suse) =====================
/etc/vpnc/vpnc-script:# Suse provides a script that modifies resolv.conf. Use it because it will
/etc/vpnc/vpnc-script:# Restore resolv.conf to old contents on Suse
/etc/vpnc/vpnc-script:# === resolv.conf handling via /sbin/resolvconf (Debian, Ubuntu, Gentoo)) =========
/etc/avahi/avahi-dnsconfd.action: test -f /etc/resolv.conf.avahi && mv /etc/resolv.conf.avahi /etc/resolv.conf
/etc/avahi/avahi-dnsconfd.action: test -f /etc/resolv.conf.avahi || mv /etc/resolv.conf /etc/resolv.conf.avahi
/etc/avahi/avahi-dnsconfd.action: done > /etc/resolv.conf
/etc/avahi/avahi-daemon.conf:#publish-resolv-conf-dns-servers=yes
/etc/rc.d/boot.cleanup:   #   # Restore a possibly dynamically modified /etc/resolv.conf
/etc/rc.d/boot.d/K01boot.cleanup:   #   # Restore a possibly dynamically modified /etc/resolv.conf
/etc/rc.d/boot.d/S13boot.cleanup:   #   # Restore a possibly dynamically modified /etc/resolv.conf
/etc/init.d/boot.cleanup:   #   # Restore a possibly dynamically modified /etc/resolv.conf
/etc/init.d/boot.d/K01boot.cleanup:   #   # Restore a possibly dynamically modified /etc/resolv.conf
/etc/init.d/boot.d/S13boot.cleanup:   #   # Restore a possibly dynamically modified /etc/resolv.conf
/etc/resolv.conf.netconfig:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:nameserver 8.8.8.8### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:nameserver 8.8.8.8### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:nameserver 8.8.8.8### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:nameserver 8.8.8.8### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:nameserver 8.8.8.8### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:nameserver 8.8.8.8### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:nameserver 8.8.8.8### /etc/resolv.conf file autogenerated by netconfig!
/etc/resolv.conf:### /etc/resolv.conf file autogenerated by netconfig!
/etc/apparmor/profiles/extras/sbin.dhcpcd:# ntp.conf and yp.conf in addition to resolv.conf.
/etc/apparmor/profiles/extras/sbin.dhcpcd: /etc/resolv.conf{,.sv} rwl,
/etc/apparmor/severity.db:/etc/resolv.conf   2 7 0
/etc/sysconfig/network/config:# causes to write the name server IP addresses to /etc/resolv.conf
/etc/sysconfig/network/config:# /etc/resolv.conf, followed by the policy resolved name server list
/etc/sysconfig/network/config:# It is written as search list into the /etc/resolv.conf file.
/etc/sysconfig/network/config:# the name servers are written directly to /etc/resolv.conf.
/etc/sysconfig/network/config:# configuration file and the /etc/resolv.conf does not contain any
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:resolver_conf=«/etc/resolv.conf»
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:# === resolv.conf ===
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:# (re)create empty resolv.conf if missed
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:         # modify_resolvconf didn't touched the resolv.conf in «bind» mode.
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:         # resolv.conf and the static nameservers as forwarder, that is it
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:         # (glibc makes use of a local ns when no ns in resolv.conf set).
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:         # we need either no ns in resolv.conf or localhost IP
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:         # reset resolv.conf — it contains no or local ns only
/etc/sysconfig/network/scripts/convert_to_netconfig_dns:         warning «Your resolv.conf seems to require disabling of the dns-resolver module»


Содержимое /etc/ppp/ip-down.local

#!/bin/sh
# author:jiangyanfeng@gmail.com
# data: 2007-08-04
rm -f /dev/huawei_ppp_up
cp -f /etc/resolv.conf.local /etc/resolv.conf
rm -f /etc/ppp/resolv.conf


Содержимое /etc/ppp/ip-up.local

#!/bin/sh
# author:jiangyanfeng@gmail.com
# data: 2007-08-04
touch /dev/huawei_ppp_up
cp -f /etc/resolv.conf /etc/resolv.conf.local
if [ -f /var/run/ppp/resolv.conf ]; then
cp -f /var/run/ppp/resolv.conf /etc/ppp/resolv.conf
fi
cp -f /etc/ppp/resolv.conf /etc/resolv.conf
cat /etc/resolv.conf.local >> /etc/resolv.conf

osa-1988
() автор топика
Ответ на: комментарий от osa-1988

Содержимое /etc/ppp/ip-up.local

#!/bin/sh
# author:jiangyanfeng@gmail.com
# data: 2007-08-04
touch /dev/huawei_ppp_up
cp -f /etc/resolv.conf /etc/resolv.conf.local
if [ -f /var/run/ppp/resolv.conf ]; then
cp -f /var/run/ppp/resolv.conf /etc/ppp/resolv.conf
fi
cp -f /etc/ppp/resolv.conf /etc/resolv.conf
cat /etc/resolv.conf.local >> /etc/resolv.conf

вот это и виновник, этот скрипт сворее всего не расчитан на работу с netconfig, я бы оставил в нем только
#!/bin/sh
touch /dev/huawei_ppp_up

а в

/etc/ppp/ip-down.local

#!/bin/sh
rm -f /dev/huawei_ppp_up

Novell-ch ★★★★★
()
Ответ на: комментарий от Novell-ch

Попробую, сегодня, наконец, выходной, могу оперативно всё делать.

osa-1988
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.