You are not logged in.

#1 2008-09-29 05:53:12

hemajang
Member
Registered: 2008-09-26
Posts: 3

Static IP (network-profiles), resolv.conf still being rewritten...

Hello,

I'm trying to setup DNS caching using Bind. I've followed the wiki on how to do this, and seems to have worked, except that upon viewing my /etc/resolv.conf, adding 127.0.0.1 didn't stick, seems the file is still being rewritten.

- I am using network-profiles to set up a static ip.

static network-profile

CONNECTION="wireless"
DESCRIPTION="blablabla"
INTERFACE=wlan0
SCAN="no"
SECURITY="wep"
ESSID="myNetwork"
KEY="12345678"
IP="static"
IFOPTS="xxx.xxx.x.xxx netmask xxx.xxx.xxx.x broadcast xxx.xxx.x.xx"
GATEWAY="xxx.xxx.x.xxx"
DNS1=ns1.isp.com
DNS2=ns2.isp.com
DNS3=ns3.isp.com

where the 3 DNS entries are the nameservers for my ISP.

Several questions from this:

Is the last part of this file (dns entries), generating my resolv.conf?
If so, why do only the first 2 dns entries appear in my resolv.conf? Is that the limit?
So is this where I put in my loopback(127.0.0.1) caching nameserver?
Can I add search and domain entries here as well to appear in my resolv.conf?
Should I just use resolvconf head/tail files?

Any help on the matter is appreciated.
thank you

Offline

#2 2008-09-29 08:10:41

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

Re: Static IP (network-profiles), resolv.conf still being rewritten...

Is the last part of this file (dns entries), generating my resolv.conf?

Yup.

If so, why do only the first 2 dns entries appear in my resolv.conf? Is that the limit?

It's only setup for two, though I did have plans to change it to a DNS array, thanks for reminding me. 2.2 will have a DNS=(x.x.x.x x.x.x.x) option that will take as many as you like.

So is this where I put in my loopback(127.0.0.1) caching nameserver?

You could.

Can I add search and domain entries here as well to appear in my resolv.conf?

Yes, SEARCH= and DOMAIN=

Should I just use resolvconf head/tail files?

That would work too, up to you.

Offline

Board footer

Powered by FluxBB