* Changing dns during installation
@ 2022-12-24 16:20 Kefir .
2022-12-24 16:22 ` Tobias Geerinckx-Rice
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Kefir . @ 2022-12-24 16:20 UTC (permalink / raw)
To: help-guix
Hi guix, is there way to change nameservers during manual installation?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Changing dns during installation
2022-12-24 16:20 Changing dns during installation Kefir .
@ 2022-12-24 16:22 ` Tobias Geerinckx-Rice
2022-12-24 16:24 ` Wolf
2023-01-04 16:32 ` Gary Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice @ 2022-12-24 16:22 UTC (permalink / raw)
To: help-guix, Kefir .
I've not done so myself, but since you're at a terminal: is editing /etc/resolv.conf not enough? Or does NM periodically overwrite it even when the connection's stable?
Kind regards,
T G-R
Sent on the go. Excuse or enjoy my brevity.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Changing dns during installation
2022-12-24 16:20 Changing dns during installation Kefir .
2022-12-24 16:22 ` Tobias Geerinckx-Rice
@ 2022-12-24 16:24 ` Wolf
2023-01-04 16:32 ` Gary Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Wolf @ 2022-12-24 16:24 UTC (permalink / raw)
To: Kefir .; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 414 bytes --]
On 2022-12-24 19:20:06 +0300, Kefir . wrote:
> Hi guix, is there way to change nameservers during manual installation?
>
I did not test it, so sorry if this is wrong, but I would assume
something like
echo nameserver 1.1.1.1 >/etc/resolv.conf
should work? Did you try it?
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Changing dns during installation
2022-12-24 16:20 Changing dns during installation Kefir .
2022-12-24 16:22 ` Tobias Geerinckx-Rice
2022-12-24 16:24 ` Wolf
@ 2023-01-04 16:32 ` Gary Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Gary Johnson @ 2023-01-04 16:32 UTC (permalink / raw)
To: Kefir .; +Cc: help-guix
"Kefir ." <manualbot@icloud.com> writes:
> Hi guix, is there way to change nameservers during manual installation?
You can set your nameservers in your `operating-system` declaration by
removing `network-manager-service-type` from `%desktop-services` and
then either automatically creating a `resolv.conf` file with
`etc-service` or setting the `name-servers` property in a
`static-networking` configuration. Note that you would use one or the
other, not both here. I've provided examples of both approaches below.
```scheme
(use-modules
((gnu services base) #:select (static-networking-service-type static-networking network-address network-route))
((gnu services desktop) #:select (%desktop-services))
((gnu services networking) #:select (network-manager-service-type))
((gnu services) #:select (etc-service modify-services))
((gnu system) #:select (operating-system)))
(operating-system
...
(services (cons*
;; Add files under /etc
(etc-service `(("resolv.conf" ,(plain-file "resolv.conf" "nameserver 53.100.82.198"))))
;; Static Networking
(service static-networking-service-type
(list (static-networking
(addresses (list (network-address
(device "enp2s0")
(value "192.168.1.25/24"))))
(routes (list (network-route
(destination "default")
(gateway "192.168.1.1"))))
(name-servers '("53.100.82.198")))))
;; Remove network-manager-service-type from %desktop-services
(modify-services %desktop-services
(delete network-manager-service-type)))))
```
--
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Why is HTML email a security nightmare? See https://useplaintext.email/
Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-04 16:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-24 16:20 Changing dns during installation Kefir .
2022-12-24 16:22 ` Tobias Geerinckx-Rice
2022-12-24 16:24 ` Wolf
2023-01-04 16:32 ` Gary Johnson
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.