Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

resolv.conf reset at boot

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
divined
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Fri Jul 23, 2004 5:11 pm

resolv.conf reset at boot

  • Quote

Post by divined » Fri Feb 16, 2007 8:09 am

Hello everybody

I`m trying to set my resolv.conf to address my nameservers. Unfortunately, it seems to get reset every time I reboot the system. Why is this so?
Top
jtaylor72
Apprentice
Apprentice
User avatar
Posts: 197
Joined: Sun Feb 01, 2004 6:02 pm
Location: "the can", WA

  • Quote

Post by jtaylor72 » Fri Feb 16, 2007 8:19 am

I am guessing you are getting your IP via DHCP. If so, add the following line to your /etc/conf.d/net file.

Code: Select all

dhcp_eth0="nodns"
Top
divined
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Fri Jul 23, 2004 5:11 pm

  • Quote

Post by divined » Fri Feb 16, 2007 9:07 am

doohh. That was rather easy. :-) thx!!!
Top
MACHINE
Tux's lil' helper
Tux's lil' helper
Posts: 141
Joined: Tue Mar 30, 2004 12:56 am
Location: Earth

  • Quote

Post by MACHINE » Mon Feb 26, 2007 5:33 am

But what should I do if I just want to append a nameserver to somewhere in the resolv.conf auto-generated everytime?

For example, using dnsmasq you have to add "nameserver 127.0.0.1" to the begining of resolv.conf followed by the DNS information auto-generated from dhcpcd, in order to enable the dns local caching.
Hi, Gentoo men!!
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic