SETUP-DNS(8)
π SETUP-DNS(8) β the manual, but make it make sense
okay so this is setup-dns, section 8 of the System Manager's Manual, and bestie it is literally the glow-up your resolver has been waiting for β¨
πΈ NAME πΈ
setup-dns β configure DNS settings π
No cap, that's the whole job. It sets up your DNS. Iconic.
π¦ SYNOPSIS π¦
setup-dns [-h] [-d DOMAIN] [IPADDR...]
Read it slowly, she's not complicated π
β¨ DESCRIPTION β¨
setup-dns writes DNS resolver configuration to /etc/resolv.conf. That's the moment. That's the main character move. π It sets the search domain and one or more nameserver addresses, and then it's done, no extra drama.
Current values from /etc/resolv.conf or the FQDN are offered as defaults when prompting π β so like, it's not making you type stuff from scratch, it's being a considerate little icon and pre-filling the vibe check for you. π«Ά
Okay this part matters, pay attention:
When IPADDR arguments are given, nameserver configuration is non-interactive. Zero prompts. She just goes. π
The -d option supplies the search domain β but heads up, without IPADDR arguments the script still prompts for nameservers. So -d alone doesn't make it fully hands-off, bestie, you still get asked about nameservers. iykyk π
π OPTIONS π
-d DOMAINβ Set the DNS search domain. That's your domain, your rules, your search. π-hβ Display usage information and exit. The classic "help me help you" flag, then she dips. π
π§ FILES π§
/etc/resolv.confβ DNS resolver configuration file. The one. The blueprint. The sacred text this whole script is writing to. ππ
π EXIT STATUS π
0β Success. Slay. Everything worked. πnon-zeroβ An error occurred. π Something went sideways, check what you typed.
π₯ SEE ALSO π₯
resolv.conf(5)β the file itself, in all its glorysetup-alpine(8)β the bigger fish π
πΊ AUTHORS πΊ
Natanael Copa <ncopa@alpinelinux.org> and others π«Ά
bestie this page is Alpine Linux, dated 2026-06-09 β stay configured, stay iconic, and may your nameservers always resolve πβ¨ππ¦
π¦ where this page comes from
- alpine 3.24: alpine-conf-doc 3.22.0-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms