Summary: | Networking setup does not work as expected by the handbook | ||
---|---|---|---|
Product: | [OLD] Docs on www.gentoo.org | Reporter: | Thomas Schweikle <tps> |
Component: | Installation Handbook | Assignee: | Docs Team <docs-team> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | openrc, whissi |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Thomas Schweikle
2013-01-17 13:11:31 UTC
I think you misunderstood resolv.conf: Your domain is example.org. You want to be able to reach other clients just via their short name (hostname). In other words: ~ # ping bar.example.org ~ # ping bar Both commands should work. To do that, you would set DOMAIN to example.org in /etc/resolv.conf. But what would you do, if you want to search in another domain (example.local), too? In this case you would also set SEARCH. With SEARCH you can also specify the order. Summary: resolv.conf (and /etc/conf.d/net) isn't used for setting the FQDN! If we want to set the FQDN "foo.example.org", we would do: 1. Set hostname (and only the hostname!) in /etc/conf.d/hostname ~ # cat /etc/conf.d/hostname # Set to the hostname of this machine hostname="foo" 2. Edit /etc/hosts and add the FQDN and hostame. Take care of the order! ~ # cat /etc/hosts | grep localhost # IPv4 and IPv6 localhost aliases 127.0.0.1 foo.example.org foo localhost ::1 foo.example.org foo localhost 3. Apply settings (restart hostname... or just reboot :p) 4. Verify ~ # hostname foo ~ # hostname -f foo.example.org I would agree with you, that "domain_search_domains" is invalid. But I only find it on <http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4#doc_chap4> at the end. Can you post a link to the handbook you used? 1. None of the current English handbooks refer to /etc/conf.d/net.example, so this complaint is invalid. 2. Thomas D posted the right way to go about doing this sort of search. Use /etc/hosts. 3. The handbook follows the examples written in /usr/share/openrc/net.example.bz2, and upstream does a good job of maintaining those in working order. If there's a bug with the installed manpage, then please file a bug with the OpenRC maintainers. Otherwise, help requests for networking configuration can be posted to https://forums.gentoo.org. |