[Nix-dev] static networking and dns
    Eelco Dolstra 
    eelco.dolstra at logicblox.com
       
    Mon Aug 13 21:53:13 CEST 2012
    
    
  
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" ];
> 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.*.
-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
    
    
More information about the nix-dev
mailing list