stopping domain-name-servers on DHCPv4
Karl Auer
kauer at biplane.com.au
Sat Sep 10 07:03:49 UTC 2011
On Sat, 2011-09-10 at 08:29 +0200, Nils Kassube wrote:
> Karl Auer wrote:
> > I want DHCPv4 to get me an address, but I do NOT want it to write the
> > received nameserver addresses into resolv.conf. DHCP is being done by
> > wicd.
> >
> > I've already tried several things:
>
> ... which all included mangling of conf files. At the properties
> dialogue for the connection you can set static DNS servers while still
> using DHCP to get the address. But I never tried that myself, so I'm not
> sure if it really works.
Thanks Nils. I don't want a static DNS address.
However, your answer gave me the idea that perhaps if I checked the
"Static DNS" flag in wicd, without actually supplying nameserver
addresses, wicd would do some magic to stop DHCP writing nameserver info
into resolv.conf. Sadly this did not happen - wicd let me check the box,
but it didn't "stick" unless I supplied actual nameserver info.
What I want is for DHCP to NOT write into resolv.conf any nameserver
addresses it receives. It *should* write any search names etc, and it
should acquire addresses for interfaces.
I'd be happy with a solution that prevented the server sending me
nameserver addresses, or a solution that caused the DHCP client to
ignore them, or a solution that simply prevented them being written into
resolv.conf. It's got to the point where I'm seriously considering
adding my own post-connection script to run after resolv.conf and rip
out nameserver lines, but that seems somehow antisocial :-)
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au) +61-2-64957160 (h)
http://www.biplane.com.au/kauer/ +61-428-957160 (mob)
GPG fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687
Old fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110910/18eb8ace/attachment.sig>
More information about the ubuntu-users
mailing list