diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-28 00:15:52 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-28 00:16:44 +0700 |
| commit | 5aafb2bf78ba7e421d75cdef028850a6dc8c286f (patch) | |
| tree | f245567c89165a8dc44431eb4e8c7c4088bbe434 /Makefile | |
| parent | 701ad0f9188f0cba9e220c97aa78546a0da98344 (diff) | |
| download | compute-archlinux-image-builder-5aafb2bf78ba7e421d75cdef028850a6dc8c286f.tar.xz | |
all: set the resolv.conf symlinked to systemd stub-resolv.conf
The default resolv.conf is empty.
This cause program that depends on resolv.conf for name resolution will
fail.
As a test, we create small Go program "cmd/golookup" that can lookup
IP address of host name using pure Go resolver (using/etc/resolv.conf).
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -17,8 +17,8 @@ image.publish: awwan local gcloud-image-cleanup.aww 5- .PHONY: image.test -image.test: - awwan local gcloud-image-test.aww 4-18 +image.test: golookup + awwan local gcloud-image-test.aww 4-25 ## Preview the .md files in local using [ciigo]. ## Open http://127.0.0.1:8080/README.html to preview the README. @@ -27,3 +27,8 @@ image.test: .PHONY: serve.doc serve.doc: ciigo -address 127.0.0.1:8080 serve . + +golookup: CGO_ENABLED=0 +golookup: cmd/golookup/main.go + go build ./cmd/golookup + go version -m golookup |
