Forums

Skip to content

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

/etc/resolv.conf keeps getting blanked out [Solved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
PM17E5
Apprentice
Apprentice
User avatar
Posts: 241
Joined: Tue Feb 10, 2009 5:55 pm

/etc/resolv.conf keeps getting blanked out [Solved]

  • Quote

Post by PM17E5 » Wed Feb 01, 2012 6:40 pm

I have "dhcp_wlan0="nodns" set in /etc/conf.d/net however every once in a while, like perhaps every 5 different networks or reconnects, my /etc/resolv.conf file will get reset into the default:

Code: Select all

# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
I'm not sure what could be wrong. Could anyone give me any pointers where to look?
Last edited by PM17E5 on Thu Feb 02, 2012 10:03 pm, edited 1 time in total.
Top
tony-curtis
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Sat May 20, 2006 11:52 pm

  • Quote

Post by tony-curtis » Wed Feb 01, 2012 7:23 pm

Are you sure it's something happening on wlan0 that is doing this? Maybe another network interface is responsible.
Top
PM17E5
Apprentice
Apprentice
User avatar
Posts: 241
Joined: Tue Feb 10, 2009 5:55 pm

  • Quote

Post by PM17E5 » Wed Feb 01, 2012 8:08 pm

I'm quite sure, I don't use any other network interfaces, though I'll go ahead and add those lines for everything else I see in ifconfig -a just to be on the safe side. It usually happens when I restart wlan0. But perhaps it's just an idle eth0 doing something at bootup? Thanks for the tip, I'll see if it ever does it again.
Top
wuzzerd
Guru
Guru
Posts: 467
Joined: Wed Jan 05, 2005 4:43 am
Location: New Mexico

  • Quote

Post by wuzzerd » Thu Feb 02, 2012 1:51 am

You might try creating /etc/resolv.conf.head with your desired resolv.conf as its contents. This is the first time I've seen that, but if I ever get bitten by dhcp overwriting my dhcpd I sure would give it a go.
Top
PM17E5
Apprentice
Apprentice
User avatar
Posts: 241
Joined: Tue Feb 10, 2009 5:55 pm

  • Quote

Post by PM17E5 » Thu Feb 02, 2012 10:03 pm

Thank you, I didn't have much special in them just had 4.2.2.1 and 4.2.2.2 but while I'm at it I might as well try the google servers since I'm not a big fan of Verizon. So basically I just have the file duplicated with a .head at the end? I'll give it a try.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

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