You are not logged in.

#1 2009-02-21 08:18:40

stevesutt89
Member
From: Newcastle Australia
Registered: 2007-10-30
Posts: 46
Website

[SOLVED]manually set resolv.conf nameserver when using netcfg

This is probably simple, but i can't seem to find the answer anywhere (wiki/google/forums), so if someone could point me in  the right direction that would be great!

When netcfg brings up my wireless connection it automatically overwrites my nameserver settings in /etc/resolv.conf

how do i set it up so that it keeps my settings?

Last edited by stevesutt89 (2009-02-23 21:58:27)

Offline

#2 2009-02-21 08:38:03

cwjiof
Member
From: Taichung, TW
Registered: 2008-01-27
Posts: 131

Re: [SOLVED]manually set resolv.conf nameserver when using netcfg

Well, just create a file /etc/resolv.conf.head, and put your nameserver in it.

Offline

#3 2009-02-21 10:21:55

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [SOLVED]manually set resolv.conf nameserver when using netcfg

Use DNS=()

DNS=(192.123.123.123 167.21.51.12)

There is also SEARCH= and DOMAIN= if needed.

Last edited by iphitus (2009-02-21 10:22:36)

Offline

#4 2009-02-21 12:53:55

stevesutt89
Member
From: Newcastle Australia
Registered: 2007-10-30
Posts: 46
Website

Re: [SOLVED]manually set resolv.conf nameserver when using netcfg

thanks guys! i wasn't sure where you mean me to put the DNS=() iphitus ....in the rc.conf?

anyhow, i got it working putting my nameserver in /etc/rc.conf.head

thanks again

Offline

Board footer

Powered by FluxBB