View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-28-2007, 10:36 AM   #1
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

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,

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

Rep: Reputation: 37
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.



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 06:48 PM.

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