сами прописываются DNS в resolv.conf
сабж, в линухе, для тех кто не знает. Руками прописываю DNS во всех файлах resolv.conf, а при подключении к инету (домолинк) DNS изменяются на адреса домолинка. Автоматом создаётся файл в /var/run/ppp/resolv.conf, который блокирует все остальные, и при команде cat /etc/resolv.conf выводятся адреса, которые берутся из /var/run/ppp/resolv.conf. Как заблокировать эту автозамену DNS?
- leo
- Сообщения: 3793
- Зарегистрирован: 09 окт 2004, 17:11
- Настоящее имя: Алексей
- Откуда: С того берега моря...
- Благодарил (а): 55 раз
- Поблагодарили: 46 раз
- Контактная информация:
а я вообще через adsl-setup делал и как-то на заморачивался что откуда берётся и что чем замещается..а поскольку юзаю на шлюзе ДНС, то прописаны форварды..
Последний раз редактировалось leo 02 мар 2008, 20:42, всего редактировалось 1 раз.
ничего не помогает.
Цитатаdefault-asyncmap
noaccomp
nobsdcomp
novjccomp
nodeflate
mru 1492
mtu 1492
lcp-echo-interval 20
lcp-echo-failure 3
noauth
defaultroute
usepeerdns
lock
persist
nopcomp
noccp
novj
kdebug 1
holdoff 4
maxfail 25
pty "pppoe -m 1412 -I eth0"
user "DML"[/quote]
Цитата# Ethernet card connected to DSL modem
ETH='eth0'
# PPPoE user name. You may have to supply "@provider.com" Sympatico
USER='DML'
# Bring link up on demand? Default is to leave link up all the time.
DEMAND=no
#DEMAND=300
# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SPECIFY
# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no
#DNS1=212.3.133.6
#DNS2=212.3.135.138
# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes
### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT
CONNECT_TIMEOUT=30
# How often in seconds pppoe-start polls to check if link is up
CONNECT_POLL=2
# Specific desired AC Name
ACNAME=
# Specific desired service name
SERVICENAME=
# Character to echo at each poll. Use PING="" if you don't want
# anything echoed
PING="."
# File where the pppoe-connect script writes its process-ID.
# Three files are actually used:
# $PIDFILE contains PID of pppoe-connect script
# $PIDFILE.pppoe contains PID of pppoe process
# $PIDFILE.pppd contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"
# Do you want to use synchronous PPP? "yes" or "no". "yes" is much
# easier on CPU usage, but may not work for you. It is safer to use
# "no", but you may want to experiment with "yes". "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no
# Do you want to clamp the MSS? Here's how to decide:
# - If you have only a SINGLE computer connected to the DSL modem, choose
# "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
# The setting of 1412 is safe for either setup, but uses slightly more
# CPU power.
CLAMPMSS=1412
#CLAMPMSS=no
# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3
# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80
# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=STANDALONE
# Linux kernel-mode plugin for pppd. If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=
# Any extra arguments to pass to pppoe. Normally, use a blank string
# like this:
PPPOE_EXTRA=""
# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect DSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"
# Any extra arguments to pass to pppd. Normally, use a blank string
# like this:
PPPD_EXTRA=""
########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"
# If you want pppoe-connect to exit when connection drops:
# RETRY_ON_FAILURE=no[/quote]
Цитатаdefault-asyncmap
noaccomp
nobsdcomp
novjccomp
nodeflate
mru 1492
mtu 1492
lcp-echo-interval 20
lcp-echo-failure 3
noauth
defaultroute
usepeerdns
lock
persist
nopcomp
noccp
novj
kdebug 1
holdoff 4
maxfail 25
pty "pppoe -m 1412 -I eth0"
user "DML"[/quote]
Цитата# Ethernet card connected to DSL modem
ETH='eth0'
# PPPoE user name. You may have to supply "@provider.com" Sympatico
USER='DML'
# Bring link up on demand? Default is to leave link up all the time.
DEMAND=no
#DEMAND=300
# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SPECIFY
# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no
#DNS1=212.3.133.6
#DNS2=212.3.135.138
# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes
### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT
CONNECT_TIMEOUT=30
# How often in seconds pppoe-start polls to check if link is up
CONNECT_POLL=2
# Specific desired AC Name
ACNAME=
# Specific desired service name
SERVICENAME=
# Character to echo at each poll. Use PING="" if you don't want
# anything echoed
PING="."
# File where the pppoe-connect script writes its process-ID.
# Three files are actually used:
# $PIDFILE contains PID of pppoe-connect script
# $PIDFILE.pppoe contains PID of pppoe process
# $PIDFILE.pppd contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"
# Do you want to use synchronous PPP? "yes" or "no". "yes" is much
# easier on CPU usage, but may not work for you. It is safer to use
# "no", but you may want to experiment with "yes". "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no
# Do you want to clamp the MSS? Here's how to decide:
# - If you have only a SINGLE computer connected to the DSL modem, choose
# "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
# The setting of 1412 is safe for either setup, but uses slightly more
# CPU power.
CLAMPMSS=1412
#CLAMPMSS=no
# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3
# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80
# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=STANDALONE
# Linux kernel-mode plugin for pppd. If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=
# Any extra arguments to pass to pppoe. Normally, use a blank string
# like this:
PPPOE_EXTRA=""
# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect DSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"
# Any extra arguments to pass to pppd. Normally, use a blank string
# like this:
PPPD_EXTRA=""
########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"
# If you want pppoe-connect to exit when connection drops:
# RETRY_ON_FAILURE=no[/quote]
решил проблему.
нужно добавить в /etc/sysconfig/network-scripts/ifcfg-ppp0 строчку PEERDNS=no
а суть проблемы была таковая, адреса DNS получаемые с сервера Домолинка берутся из внешки, и постоянно идет к ним обращение. Следовательно идёт внешний траф и за него снимают деньги, а я за пределы "локалки" даже не выхожу! Деньги хоть и не большие - по копейки снимает минут за 5-10, но всё же.... копейка рубль бережет.
нужно добавить в /etc/sysconfig/network-scripts/ifcfg-ppp0 строчку PEERDNS=no
а суть проблемы была таковая, адреса DNS получаемые с сервера Домолинка берутся из внешки, и постоянно идет к ним обращение. Следовательно идёт внешний траф и за него снимают деньги, а я за пределы "локалки" даже не выхожу! Деньги хоть и не большие - по копейки снимает минут за 5-10, но всё же.... копейка рубль бережет.