[Nix-dev] static networking and dns
Mathijs Kwik
mathijs at bluescreen303.nl
Mon Aug 13 22:04:54 CEST 2012
On Mon, Aug 13, 2012 at 9:53 PM, Eelco Dolstra
<eelco.dolstra at logicblox.com> wrote:
> Hi,
>
> On 13/08/12 15:32, Mathijs Kwik wrote:
>
>> I would like to configure a machine with static networking settings.
>> I found that setting a static ip address+gateway+netmask is available,
>> but I can't find anything for /etc/resolv.conf.
>
> You can set networking.nameservers, e.g.
>
> networking.nameservers = [ "10.0.2.3" ];
>
I searched for dns and resolv. Sometimes things are just too simple :)
>> On a related note: I could not find options to set ipv6 addresses
>> either, but that's perhaps not something people do everyday, so I just
>> created a (upstart) job to set one statically. Perhaps there is a
>> better way for that too?
>
> Not really. I've used networking.localCommands to do this. We should probably
> add an ipv6Address option to networking.interfaces.*.
That's on my list for this autumn if noone beats me to it ;)
Thanks
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
More information about the nix-dev
mailing list