LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-28-2007, 10:36 AM   #1
lfhelper
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
DNS problem.


Hi everybody,

I discovered the following problem:

When my slackbox boots up, it has the wrong nameserver setup.

I tried Slackware 11 (2.6.18) on VMWARE with two virtual ethernet cards, the first one is NAT, the second is Host-only.

Both are configured to use DHCP in /etc/rc.d/rc.inet1.conf.

After startup, only the ip address of the second network card's (Host-only) gateway/dns is entered in /etc/resolv.conf automatically,
so i cant resolve internet names like www.google.com.

On other Linux Distributions my /etc/resolv.conf has several nameservers, depending on how many netcards i use.

My current workaround is to override the /etc/resolv.conf manually with the help of the rc.local script uppon boot by overriding it with the gateway/dns of the NAT's networkcard (the one which can connect to internet).

This is really not the "clean" way and im searching for a solution for this issue.

I am happy for every tipp and suggestion one will give me to solve this issue.

Thank you in advance and with kind regards,
lfhelper.

Last edited by lfhelper; 01-28-2007 at 11:02 AM.
 
Old 01-28-2007, 04:58 PM   #2
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 535

Rep: Reputation: 36
I think that dhcpcd replaces, not updates, /etc/resolv.conf when it obtains an IP address. Maybe use the -R option on the second card to stop that behaviour.

Cheers.
 
  


Reply

Tags
dns, resolvconf


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 problem gwh23960 Linux - Networking 11 03-03-2008 06:45 PM
problem in DNS murthy_sys Linux - Networking 0 05-20-2006 02:27 AM
DNS problem hinetvenkat Linux - Networking 9 04-20-2005 01:55 AM
Possible DNS problem? GraemeK Linux - Networking 3 05-17-2004 07:52 AM
problem with dns ! vecs Linux - Software 7 07-22-2003 01:31 PM


All times are GMT -5. The time now is 01:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration