LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-19-2005, 10:04 PM   #1
Paxmaster
Member
 
Registered: Jun 2004
Location: unknown place in NYC
Distribution: Ubuntu
Posts: 377

Rep: Reputation: 30
dns issue


Hi !

we have a couple of dns, and my question is how could I allow one internel dns to my resolv.conf not others. I have added in /etc/resolv.conf but it keep on changing like when i shutdown or reboot the computer, also i change the chmod permission to 444 but didn't work
I am using ubuntu distro

Last edited by Paxmaster; 08-20-2005 at 11:55 AM.
 
Old 08-19-2005, 11:16 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
sounds like the /etc/resolv.conf is getting overwritten by a dhcp client...

if so, you'd need to find the startup script for the dhcp client and then modify the command(s) so as that /etc/resolv.conf isn't overwritten...

BTW, if you are using dhcpcd, then the option you wanna add is -R... from man dhcpcd:
Quote:
-R

Prevents dhcpcd from replacing existing /etc/resolv.conf file.
just my ...

PS: remember to change the perm back to 644...


Last edited by win32sux; 08-19-2005 at 11:17 PM.
 
Old 08-20-2005, 02:17 PM   #3
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
To avoid that any other program (ie pppd) touches /etc/resolv.conf you could do:
chattr +i /etc/resolv.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS issue Red Squirrel Linux - Networking 25 11-02-2004 10:21 PM
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 12:28 AM
Dns Issue!!! treedstang Linux - Networking 0 06-04-2004 03:44 PM
dns issue no.2 iquadri1 Linux - Networking 0 09-29-2001 01:22 PM
dns issue no.1 iquadri1 Linux - Networking 0 09-29-2001 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration