Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201819 - pppoe nameserver disappears shortly after the connection is established
Summary: pppoe nameserver disappears shortly after the connection is established
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-10 01:10 UTC by Radu Benea
Modified: 2007-12-10 13:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radu Benea 2007-12-10 01:10:31 UTC
I think a look at what is happening is the best answer here
# /etc/init.d/net.ppp0 start
 * Starting ppp0
 *   Bringing up ppp0
 *     ppp
 *       Running pppd ...
 *       ppp0 received address 79.113.153.111/32
very short time after connection
# ls -l /etc/resolv.conf ; cat /etc/resolv.conf
lrwxrwxrwx 1 root root 20 2007-12-10 01:52 /etc/resolv.conf -> /etc/ppp/resolv.conf
nameserver 213.157.188.164
nameserver 213.157.188.162
one lonely second later
# ls -l /etc/resolv.conf ; cat /etc/resolv.conf
lrwxrwxrwx 1 root root 20 2007-12-10 01:52 /etc/resolv.conf -> /etc/ppp/resolv.conf
# Generated by net-scripts for interface ppp0
domain no-ip.org

my options for ppp0 from /etc/conf.d/net
pppd_ppp0=( "updetach" "defaultroute" "usepeerdns" )

so shortly said pppd reads the correct settings and then flushes them

Reproducible: Always




stable hardened amd64 gentoo, no modified ebuilds, everything is default, let me know if you need more info on this
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-10 07:58:33 UTC
Post the output of `sed -e 's/#.*//;/^\s*$/d' /etc/conf.d/net`, emerge --info and reopen then. Thanks.
Comment 2 Radu Benea 2007-12-10 12:55:32 UTC
# sed -e 's/#.*//;/^\s*$/d' /etc/conf.d/net
dns_domain="no-ip.org"
config_eth0=( "dhcp" )
dhcp_eth0=( "nogateway" )
config_ppp0=( "ppp" )
plugins_ppp0=( "pppoe" )
link_ppp0="eth0"
username_ppp0='CJ8947653'
pppd_ppp0=( "updetach" "defaultroute" "usepeerdns" )
depend_ppp0() {
        need net.eth0
}

# emerge --info
Portage 2.1.3.19 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.6.1-r0, 2.6.22-hardened-r8 x86_64)
=================================================================
System uname: 2.6.22-hardened-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Sun, 09 Dec 2007 20:16:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.7.9-r1, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org/ ftp://ftp.roedu.net/pub/mirrors/gentoo.org/ ftp://ftp.lug.ro/gentoo http://ftp.lug.ro/gentoo/ ftp://ftp.romnet.org/gentoo/ http://ftp.romnet.org/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext acl amd64 bash-completion berkdb caps chroot cracklib crypt dri gd gdbm gmp gpm hardened ipv6 justify ldap midi multilib ncurses nls nptl nptlonly opengl pam pcre perl pic readline sasl sse sse2 sse3 ssl tcpd unicode urandom vim-syntax xattr xcb xinetd xml xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug
rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include
info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Radu Benea 2007-12-10 12:57:08 UTC
the X-related flags were not there yesterday, the rest is exactly the same
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-12-10 13:04:34 UTC
Well, your configuration is obviously incorrect, you are overwriting the DNS info and others yourself. See http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=4&chap=3#doc_chap4