Add hostname to router namespace
This commit is contained in:
parent
1e5b812663
commit
af3305a51e
2 changed files with 5 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
prefixLength,
|
||||
domain,
|
||||
dhcpRange,
|
||||
routerHostName,
|
||||
}:
|
||||
|
||||
let pkgs = import<nixpkgs>{};
|
||||
|
@ -98,6 +99,7 @@ in
|
|||
# The example below send any host in double-click.net to a local
|
||||
# web-server.
|
||||
#address=/double-click.net/127.0.0.1
|
||||
address=/${routerHostName}.${domain}/${routerAddress}
|
||||
|
||||
# --address (and --server) work with IPv6 addresses too.
|
||||
#address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83
|
||||
|
@ -143,7 +145,7 @@ in
|
|||
|
||||
# If you don't want dnsmasq to read /etc/hosts, uncomment the
|
||||
# following line.
|
||||
#no-hosts
|
||||
no-hosts
|
||||
# or if you want it to read another file, as well as /etc/hosts, use
|
||||
# this.
|
||||
#addn-hosts=/etc/banner_add_hosts
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
prefixLength = 24;
|
||||
domain = "ilanz.fh2.ch";
|
||||
dhcpRange = "10.1.1.2,10.1.1.249";
|
||||
}
|
||||
routerHostName = "router";
|
||||
},
|
||||
}:
|
||||
|
||||
let pkgs = import<nixpkgs>{};
|
||||
|
|
Loading…
Add table
Reference in a new issue