Re: router DNS
From: John-Paul Stewart (jpstewart_at_sympatico.ca)
Date: 01/12/04
- Previous message: Noi: "Re: FTP bash script wanted"
- In reply to: johnny bobby bee: "Re: router DNS"
- Next in thread: jvda: "Re: router DNS"
- Reply: jvda: "Re: router DNS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 12 Jan 2004 14:13:04 -0500
johnny bobby bee wrote:
>
> John-Paul Stewart typed:
>
> > You need to
> > find the config file for your DHCP client and tell it not to get DNS
> > info via DHCP.
>
> found /sbin/dhclient-script - but it's a bit beyond my level of scripting
> knowledge. i imagine that first function () is what does it, but there are
> other references to /etc/resolv.conf in the file.
>
> can anyone tell me where i'd have to make the changes?
Do *NOT* change that script. (It may break things and will get
overwriten during package upgrades anyway.)
You need to find the appropriate config file, probably somewhere under
/etc. /etc/sysconfig might be the directory to try. 'man dhclient'
should tell you exactly what config file it uses. Edit the specified
config file, not the script itself. A first guess would be to add
"USEPEERDNS=no" to the appropriate config file (without quotes), but
again 'man dhclient' (or whatever the name of your DHCP client is)
should tell you exactly what you need to change.
I'll repeat: *do* *not* edit the script in /sbin.
- Previous message: Noi: "Re: FTP bash script wanted"
- In reply to: johnny bobby bee: "Re: router DNS"
- Next in thread: jvda: "Re: router DNS"
- Reply: jvda: "Re: router DNS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|