Re: Configuring /etc/resolv.conf ?

2019-12-06 Thread Dick Visser
The thing I was after is how to have 127.0.0.1 as the resolver.
Turns out I just had to uncomment this line in /etc/dhcp/dhclient.conf:

prepend domain-name-servers 127.0.0.1;

thx!


On Fri, 6 Dec 2019 at 20:31, Noah Meyerhans  wrote:
>
> On Fri, Dec 06, 2019 at 04:42:18PM +0100, Dick Visser wrote:
> > I'm struggling to add custom nameservers to /etc/resolv.conf.
> > The file gets overwritten on reboot, but I can't find out where this is 
> > done.
> > Any ideas?
>
> On our cloud images, resolv.conf is managed by dhclient, which is
> invoked by ifup and is responsible for setting up the network interfaces
> based on DHCP negotiation with a remote service provided by the cloud
> provider.
>
> The /sbin/dhclient-script shell script contains a function
> make_resolv_conf(), which generates and installs the new resolv.conf.
> If needed, you can redefine that function by placing a script fragment
> in /etc/dhcp/dhclient-enter-hooks.d/
>
> noah
>


-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT



Re: Configuring /etc/resolv.conf ?

2019-12-06 Thread Noah Meyerhans
On Fri, Dec 06, 2019 at 04:42:18PM +0100, Dick Visser wrote:
> I'm struggling to add custom nameservers to /etc/resolv.conf.
> The file gets overwritten on reboot, but I can't find out where this is done.
> Any ideas?

On our cloud images, resolv.conf is managed by dhclient, which is
invoked by ifup and is responsible for setting up the network interfaces
based on DHCP negotiation with a remote service provided by the cloud
provider.

The /sbin/dhclient-script shell script contains a function
make_resolv_conf(), which generates and installs the new resolv.conf.
If needed, you can redefine that function by placing a script fragment
in /etc/dhcp/dhclient-enter-hooks.d/

noah



Re: Configuring /etc/resolv.conf ?

2019-12-06 Thread Geert Stappers
On Fri, Dec 06, 2019 at 04:42:18PM +0100, Dick Visser wrote:
> Hi
> 
> I'm struggling to add custom nameservers to /etc/resolv.conf.
> The file gets overwritten on reboot, but I can't find out where this is done.
> Any ideas?

At network level.
|$ man interfaces | tail
|
|SEE ALSO
|   ifup(8), ip(8), ifconfig(8), run-parts(8), resolvconf(8).

In case you are not using ifupdown,
 consult your "network setup tool of choice"  


Groeten
Geert Stappers
-- 
Leven en laten leven



Configuring /etc/resolv.conf ?

2019-12-06 Thread Dick Visser
Hi

I'm struggling to add custom nameservers to /etc/resolv.conf.
The file gets overwritten on reboot, but I can't find out where this is done.
Any ideas?

thx
-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT